Discussion:
How to call the javascript through Command prompt?
(too old to reply)
P***@adobeforums.com
2009-03-13 14:49:06 UTC
Permalink
I need to call the .js file through command prompt. And also through programming language like c++, java. Could you please advice me with samples.This is for "illustrator cs".
M***@adobeforums.com
2009-03-14 16:18:31 UTC
Permalink
Adobe-specific sctripts can be run as a parameter to the main executable, for After Effects (which is my main Adobe program) this would be afterfx.exe -r c:\script_path\save_and_increment.jsx . The synthax may slightly vary for Illu, but it should work similarly. If you want the program to only run specific operations, then shut down again you will however have to embed everything in a BridgeTalk script, I guess...

Mylenium
P***@adobeforums.com
2009-03-16 12:40:27 UTC
Permalink
Thanks for your response. Sorry, i could not cleary understand. I need to know what is mean by "afterfx.exe -r". My script name is Sample.js(D:\JS\Sample.js). How can i run my script through command prompt. Kindly advice me with examples.
M***@adobeforums.com
2009-03-16 13:07:03 UTC
Permalink
In theory simply run illustrator.exe -r D:\js\sample.js Illustrator's script engine will pick it up and execute it, once the program has been launched. Maybe JET can cast some light on this. I'm really not doing scripting beyond After Effects, so I don't know much about specific differences of implementation across different Adobe apps.

Mylenium
P***@adobeforums.com
2009-03-16 13:41:17 UTC
Permalink
Thanks for your response. As per your advice i run that script(Illustrator.exe -r D:\JS\Sample.js) through command prompt. But its not working just the script(Sample.js) opened in the illustrator. Kindly advice me.
s***@gmail.com
2013-11-12 09:44:14 UTC
Permalink
Post by P***@adobeforums.com
I need to call the .js file through command prompt. And also through programming language like c++, java. Could you please advice me with samples.This is for "illustrator cs".
var docRef = documents.add();
var piRef = activeDocument.pathItems;
var size=200;
var sides=10;
var skip=6;
What kind of scrips?

Loading...