Copy link to clipboard
Copied
I'm able to run the script but not able to pass arguments to the script.How to do this.
Copy link to clipboard
Copied
Hoping to prompt others to offer better ideas, I will say that I have written the javascript end of a machine that works like this: a VB script creates a specially named system variable that is read and used by a javascript. Presumably, the command line could do that same thing.
Copy link to clipboard
Copied
What if you share your code ?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I think the OP was looking for a way to pass data from the command line to an InDesign script. What I was suggesting was setting an new environment variable from the command line, as opposed to saving a standard environment variable into a text file. Once that is done, a javascript can access that variable with the $.getenv() method.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more