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

Run External script from indesign javascript

Explorer ,
Jun 22, 2022 Jun 22, 2022

HI,

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

 

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

myJavaScriptFile.execute();

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

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

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

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 )

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

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

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