View Full Version : Running VBscriptsin CS2?
BTBeilke
22nd of January 2007 (Mon), 21:34
OK, upon on further review, I probably should have used JavaScript, but I didn't. I wrote a VBscript and have a couple of questions:
1. How can I run a VBscript from Photoshop CS2? I can run the script from the editior I use just fine but can't seem to find a way to easily run it from within CS2 without envoking the editor.
2. This script is designed to run on a single file. Is there an easy way to instruct CS2 to run it on a whole folder of files? I've seen options for specifying an action to batch run, but not a VBscript.
Thanks!
jfrancho
23rd of January 2007 (Tue), 10:30
Install the script to the C:\Program Files\Adobe\Photoshop CS2\Presets\Scripts dir. Restart CS2, and access via File > Scrpts > [script filename]. To be able to batch the script, you will have to specify default values to all the user defined variables and suppress dialog boxes. Test the script to see that it works properly, and then create an action that runs the scripts and performs a Save As... step. Then you can batch away.
BTBeilke
23rd of January 2007 (Tue), 13:23
Install the script to the C:\Program Files\Adobe\Photoshop CS2\Presets\Scripts dir. Restart CS2, and access via File > Scrpts > [script filename]. To be able to batch the script, you will have to specify default values to all the user defined variables and suppress dialog boxes. Test the script to see that it works properly, and then create an action that runs the scripts and performs a Save As... step. Then you can batch away.
I had already tried putting my file in the Scripts directory last night and it never has appeared in the Scripts menu list from within CS2. From what I have read, the only scripts that show in that list are Java Scripts. I hadn't thought about creating an action to run a script, but that just might be the ticket (assuming that it doesn't have to be a Java script :sad: ). Thanks.
jfrancho
23rd of January 2007 (Tue), 14:16
Never tried VBScript. I thought it was supoprted?
BTBeilke
23rd of January 2007 (Tue), 14:48
Never tried VBScript. I thought it was supoprted?
I guess it depends on how you define "supported". My VBScript works great. It just isn't real convenient to use. According to the scripting documentation that came with CS2, even if you use the File>Scripts>Browse menu item, you can only select .js or .jsx files. I may just take the time to convert it to JS and be done with it. I already knew VB, so it was easier (I thought) to just use VBS.
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.