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

Execute a .jsx script with Python 3

Community Beginner ,
Dec 15, 2020 Dec 15, 2020

Copy link to clipboard

Copied

Hello,

Do you know how to execute a .jsx script with Python 3 ? 

The idea is to use Python to give an input image and an output path to the .jsx script.

The .jsx script calls Adobe Bridge and modifies the image.

 

Thanks in advance ! 

TOPICS
How to , Scripting

Views

701

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 Beginner ,
Dec 21, 2020 Dec 21, 2020

Copy link to clipboard

Copied

Hello ! 

You can find this post on Adobe Community. It works under Windows as there is a Bridge.exe

In the official documentation for after effects, it is possible to run a script via this command line : 

"path_to_adobe_software.exe" -r "path_to_your_script.jsx" 

 

In order to add arguments, people recommand to save the arguments in text files. Then, to read the text file with the .jsx script (see this post). This way works.

 

Do you know if there is a specific command to do it with arguments parsing from command line ? Do you know why process.argv is not recognized ? 

 

Thank you in advance ! 

 

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 ,
Jan 01, 2021 Jan 01, 2021

Copy link to clipboard

Copied

vbscript can read arguments from command line when the .vbs runs there .jsx after which you put args.

 

system('start "" c:\\runJSX.vbs c:\\JSX.jsx someArguments moreArguments')

 

Of course you must write your .vbs too, but then by ran .jsx you can for example alert(argumetns).

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 Beginner ,
Jan 29, 2021 Jan 29, 2021

Copy link to clipboard

Copied

LATEST

Thanks a lot @Kukurykus and i'm sorry for my late reply. I'll test with vbs and let you know. 

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