Running a javascript with arguments from command line

Discussion of Automation, Image Workflow and Raw Image Workflow

Moderators: xbytor, DavideBarranca, Paul MR

feranti

Running a javascript with arguments from command line

Postby feranti » Tue Jul 31, 2012 5:07 pm

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.

Return to “Automation & Image Workflow”

Who is online

Users browsing this forum: No registered users and 1 guest