Page 1 of 1

Start AE from command line and run script

Posted: October 29th, 2013, 12:53 pm
by Simma
I'm trying to start After Effects from the command line and run a script at the same time. I do this by executing a .cmd file with the following content:

Code: Select all

c:
cd "C:\Program Files\Adobe\Adobe After Effects CS6\Support Files"
AfterFX.exe -m -r D:\script.jsx
This works, but as soon as the script is run, After Effects closes. Is there a way not to close the application?

Cheers

Re: Start AE from command line and run script

Posted: October 30th, 2013, 8:24 am
by Simma
Found app.exitAfterLaunchAndEval in the Scripting Guide. Seems to do the trick.

Re: Start AE from command line and run script

Posted: December 9th, 2013, 1:00 pm
by scribling
Couldn't you just put that script in the .../Scripts/Startup/ directory?