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();
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
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 )
Copy link to clipboard
Copied
Don't forget to test the command line in Terminal. Did you chmod the script?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now