Search code examples
macosscriptingadobeterminalafter-effects

After Effects (Mac) Execute a Script from Terminal


I'm trying to figure out how to execute an After Effects script from the command line.

Official documentation says:

Example (for Windows):
afterfx -r c:\script_path\example_script.jsx

And nothing for Mac. However I'm trying:

open -b com.adobe.AfterEffects --args -r /script_path/example_script.jsx

And nothing happens. The program get opened though, but it seems that the script is never called.

Anyone had figured out this?


Solution

  • I got it working with this:

    open -b com.adobe.AfterEffects --args /Users/[user]/Desktop/[folder]/file.aep
    

    seems all I had to do was get rid of the 'r' flag.

    Good luck!