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

Run External script from indesign javascript

Explorer ,
Jun 22, 2022 Jun 22, 2022

Copy link to clipboard

Copied

HI,

The below code was not executed in Windows & Mac please guide.

 

var myJavaScriptFile = new File("~/Desktop/websterdict.py");

myJavaScriptFile.execute();

Views

482

Translate

Translate

Report

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
Community Expert ,
Jun 23, 2022 Jun 23, 2022

Copy link to clipboard

Copied

I don't know if python script is directly executable. However you can embed the command to execute your py script inside a shell script as I mentioned in the other thread you created here

-Manan

Votes

Translate

Translate

Report

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
Community Expert ,
Jun 23, 2022 Jun 23, 2022

Copy link to clipboard

Copied

Hi $rikanth,

how did you execute the ExtendScript code?

Was it a *.jsx file stored in the Scripts panel's User folder of InDesign?

Did you do a double-click on the *.jsx file that was stored somewhere on your harddisk?

Something else?

 

Regards,
Uwe Laubender
( Adobe Community Professional )

Votes

Translate

Translate

Report

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
LEGEND ,
Jun 24, 2022 Jun 24, 2022

Copy link to clipboard

Copied

LATEST

Don't forget to test the command line in Terminal. Did you chmod the script?

Votes

Translate

Translate

Report

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