Skip to main content
Inspiring
June 23, 2022
Question

Run External script from indesign javascript

  • June 23, 2022
  • 3 replies
  • 984 views

HI,

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

 

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

myJavaScriptFile.execute();

    This topic has been closed for replies.

    3 replies

    Legend
    June 24, 2022

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

    Community Expert
    June 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 )

    Community Expert
    June 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

    -Manan