Highlighted

Return values of the osascript running the ae jsx script.

Community Beginner ,
Jun 23, 2020

Copy link to clipboard

Copied

Hi. everyone.

Now i used the osascript to run the jsx script on the terminal. 

osascript -e 'tell application "/Applications/Adobe After Effects 2020/Adobe After Effects 2020.app/Contents/aerendercore.app" to launch' -e 'tell application "/Applications/Adobe After Effects 2020/Adobe After Effects 2020.app/Contents/aerendercore.app" to DoScriptFile "jsx_path"'

 When it succeeds, it returns the 0.

And when "Connection is invalid. (-609)" occurs, it returns 1.

I want to handle the all success/fail cases by the return value of the command.

Could you please list the all the possible return values of the command?

Or if you have reference article, that will be great help for me.

Please help if you have any idea.

Thank  you.

TOPICS
Crash, Error or problem, Expressions, Freeze or hang, Scripting

Views

47

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

Return values of the osascript running the ae jsx script.

Community Beginner ,
Jun 23, 2020

Copy link to clipboard

Copied

Hi. everyone.

Now i used the osascript to run the jsx script on the terminal. 

osascript -e 'tell application "/Applications/Adobe After Effects 2020/Adobe After Effects 2020.app/Contents/aerendercore.app" to launch' -e 'tell application "/Applications/Adobe After Effects 2020/Adobe After Effects 2020.app/Contents/aerendercore.app" to DoScriptFile "jsx_path"'

 When it succeeds, it returns the 0.

And when "Connection is invalid. (-609)" occurs, it returns 1.

I want to handle the all success/fail cases by the return value of the command.

Could you please list the all the possible return values of the command?

Or if you have reference article, that will be great help for me.

Please help if you have any idea.

Thank  you.

TOPICS
Crash, Error or problem, Expressions, Freeze or hang, Scripting

Views

48

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
Jun 23, 2020 0

Have something to add?

Join the conversation