Start AE from command line and run script

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
Simma
Posts: 98
Joined: June 8th, 2010, 2:57 pm

October 29th, 2013, 12:53 pm

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
Simma
Posts: 98
Joined: June 8th, 2010, 2:57 pm

October 30th, 2013, 8:24 am

Found app.exitAfterLaunchAndEval in the Scripting Guide. Seems to do the trick.
scribling
Posts: 143
Joined: May 1st, 2005, 1:52 pm
Contact:

December 9th, 2013, 1:00 pm

Couldn't you just put that script in the .../Scripts/Startup/ directory?
Post Reply