Running a javascript with arguments from command line

Discussion of Automation, Image Workflow and Raw Image Workflow

Moderators: xbytor, Kukurykus, Tom

feranti

Running a javascript with arguments from command line

Post by feranti »

Hello,

I need to launch Photoshop with the command line and execute a javascript.
I succeded in this for now but I can't pass any arguments to the javascript launched this way.
Here is the line I use:
Code: Select allC:\Program Files\Adobe\Adobe Photoshop CS5 (64 Bit)>photoshop.exe "C:\Users\...\myJS.js"


I already tried several things. I need to pass one string argument:
Code: Select allC:\Program Files\Adobe\Adobe Photoshop CS5 (64 Bit)>photoshop.exe "C:\Users\...\myJS.js" "myStringArg"
The script is well executed but arguments are not found.


Code: Select allC:\Program Files\Adobe\Adobe Photoshop CS5 (64 Bit)>photoshop.exe "C:\Users\...\myJS.js myStringArg"
The script is NOTexecuted.

I still can't make it work.

It is even possible ?
Thanks for advance.