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

How to execute JSX script from terminal window/Shellscript?

Community Beginner ,
Oct 12, 2021 Oct 12, 2021

Hi All,

 

I have a JSX script that is for generating pdf files from InDesign documents. I want to execute this script through terminal command or Shell scripting.

 

Could anyone help me on this.

 

Thanks.

TOPICS
How to , Scripting
1.1K
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

correct answers 1 Correct answer

Community Expert , Oct 12, 2021 Oct 12, 2021
Translate
Community Expert ,
Oct 12, 2021 Oct 12, 2021

Hi,

Did you try the solution from the following link

 

https://community.adobe.com/t5/indesign-discussions/how-to-run-jsx-script-from-javascript-or-cfscrip...

 

Best regards
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
Advisor ,
Oct 15, 2021 Oct 15, 2021
LATEST

Hello @ad_ind38716857,

This works on Mac OS, you will just need to change the file path and name of the .jsx file.

osascript -e 'tell application id "com.adobe.indesign" to do script (posix file "/Users/User-Name/Desktop/Your-Script.jsx") language javascript'

 

Regards,

Mike

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