Welcome to RetouchPRO, the web community for retouchers.
You are currently viewing as an unregistered guest which gives you limited access. Registration is fast, simple and absolutely free so please, join RetouchPRO today!
If you have any problems with the registration process or your account login, please contact us. If you've forgotten your password, click here.
| | Photoshop Scripting Learning and sharing for all platforms | 
10-28-2003, 01:28 AM
|  | Janitor | | Join Date: Aug 2001
Posts: 3,864
| | | 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? | 
10-28-2003, 06:49 PM
| | Moderator | | Join Date: Oct 2001 Location: Western NY
Posts: 978
| | | 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? | 
10-28-2003, 08:19 PM
|  | Janitor | | Join Date: Aug 2001
Posts: 3,864
| | | 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. | 
10-28-2003, 08:53 PM
| | Moderator | | Join Date: Oct 2001 Location: Western NY
Posts: 978
| | | You can still do some pretty cool stuff with java...even if you can't go outside Photoshop. 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 Photoshop.
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. | 
10-28-2003, 09:00 PM
|  | Janitor | | Join Date: Aug 2001
Posts: 3,864
| | | 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. | 
10-29-2003, 03:39 AM
| | Moderator | | Join Date: Oct 2001 Location: Western NY
Posts: 978
| | | 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... | 
10-29-2003, 04:18 AM
|  | Janitor | | Join Date: Aug 2001
Posts: 3,864
| | | 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! | 
10-29-2003, 06:14 AM
| | Moderator | | Join Date: Oct 2001 Location: Western NY
Posts: 978
| | | 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. |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -6. The time now is 03:59 PM. | |
|