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.
Error or problem
Freeze or hang