Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Pass arguments to indesign script from command prompt

New Here ,
Jan 27, 2018 Jan 27, 2018

I'm able to run the script but not able to pass arguments to the script.How to do this.

TOPICS
Scripting
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jan 28, 2018 Jan 28, 2018

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Jan 29, 2018 Jan 29, 2018

What if you share your code ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jan 29, 2018 Jan 29, 2018
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jan 30, 2018 Jan 30, 2018
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines