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

57

Likes

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
Adobe Community Professional ,
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

Likes

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
Adobe Community Professional ,
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 )

Likes

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?

Likes

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