No announcement yet.

VbScript vs. Visual Basic

  • Filter
  • Time
  • Show
Clear All
new posts

  • VbScript vs. Visual Basic

    I was reading the Photoshop scripting guide today (slow day) and noticed that it never mentions VbScript, even though it's a scripting guide. It only talks about Visual Basic.

    Does VbScript even exist anymore? Is it the same thing as Visual Basic nowadays? Did .Net swallow it all up along with VBA?
    Learn by teaching
    Take responsibility for learning

  • #2
    I use VB to write scripts for processing some simple word events on the PC. It exists alright.

    if we are looking at the same CS docs, there is a bunch of stuff in the dedicated doc for VB, but it is more-or-less a listing of codes.

    the doc I found most helpful was the JS doc. Also, as I tend to learn this way, I liked looking at the samples provided by adobe.

    I've used JS to program in an interface -- regretfully i am having a little problem getting buttons to behave...

    Did I answer the wrong question?


    • #3
      You got me digging a little deeper, and I found the section on differences between Visual Basic and VbScript.

      Javascript makes the most pragmatic sense, since scripts can then be shared between OSs, but it's also the most opaque.
      Learn by teaching
      Take responsibility for learning


      • #4
        You can still do some pretty cool stuff with java...even if you can't go outside PS. There are a lot of interface enhancements possible...not immediately apparent, perhaps, in how they work. But like the old filter factory, you can actually build new components (and then record an action and assign an F key to open them up). You'll see one in a day or two.

        I succeeded in opening the can of worms, and now i'll have to make some interface components to simplify working with tools by another design.

        javaScript can call a VB or AS behavior. i haven't been digging there, but it would seem a good fit to most problems as you'd only have to build the VB and AS components in the spots where they are needed to look outside PS.

        but what about extracting XML? i see nothing documented on metadata (or almost as little).

        Sorry to fail the distinction between VbScript and VB. I was assuming them to be fairly similar beasts.


        • #5
          Go to the MS VbScript homepage and read the part about launching scripts from HTML, then ponder on PScs's new HTML help authoring feature.

          Seems to me there's some big potential there.
          Learn by teaching
          Take responsibility for learning


          • #6
            That sounds pretty interesting. I am also wondering about how those menus are stuck together, and if there might not be a way to build an interface for a tutorial rather than jumping out to a browser. Might be the wrong way to go, but could also be an interesting direction for keeping the users in one program, rather than jaunting about...


            • #7
              Of course, on the JS front, I downloaded Russel Brown's sample CS script from the Expert Center. It demonstrates CS's new JS UI builder. There's also a movie, but it's 15 meg, and only demonstrates the script, not how he wrote it.

              The new UI is cool, but you still have to write everything in a text editor, even building the interface.

              I just installed Visual Basic, and it already knew all the Photoshop methods and commands!
              Learn by teaching
              Take responsibility for learning


              • #8
                But your VB won't translate to mac...and I tend to think not only for my good, but for transferring on platforms. if I can write in JS, I can make it work at home (Mac) and at work (PC). There may be other ramifications for Elements...Though I've yet to try that out.


                • #9
                  Re: VbScript vs. Visual Basic

                  I have both VB 2008 Express and CS5 on my computer. How do I make use of the CS type library showing objects and methods? Can't seem to find these from VB.



                  Related Topics


                  • okplayer
                    Scripting not being used to potential?
                    by okplayer
                    Does anyone else think that PS Scripting should be so much more popular than it seems to be? Maybe because it's a new idea in Photoshop, but scripts could be so powerful, yet no one seems to be taking advantage of them. I plan on devoting a lot of my time to them in the next couple weeks to get them...
                    11-24-2004, 07:03 PM
                  • v.bampton
                    Any tuturials?
                    by v.bampton
                    I'm quite interested in photoshop's scripting capabilities, as actions don't have quite the flexibility I need. I don't have any programming experience, although I have gathered from another board that VBScript is what I need to use for what I have in mind (can't move/delete files using java? correct?)....
                    12-10-2004, 01:39 PM
                  • gmitchel
                    GUI widget editor for Photoshop Scripting
                    by gmitchel
                    I wish there was a reliable GUI editor for the Javascript widgets in Photoshop's scripting support. The UI is generally the hardest part of scripting Photoshop.


                    11-22-2008, 10:22 PM
                  • tom langford
                    The Photoshop CS Rip-off
                    by tom langford

                    I'm a professional retoucher and photographer, and recently joined RetouchPro.

                    I've used Photoshop every day for years and I'm dismayed at how much of a rip-off each new upgrade has become. I'm presently using version 7, and checked out CS2 to see if it was worth upgrading....
                    09-01-2005, 05:14 AM
                  • jeaniesa
                    Java & PHP
                    by jeaniesa
                    Quote below from this post:Thanks for that info David. (I've broken this discussion off to create a new thread so I can ask more questions without going to far out on a tangent in the other thread.)

                    I've been a little worried about Java b/c of the browser issues, but then I wonder whether...
                    01-16-2003, 02:36 PM