Page 1 of 1

autorun script on project launch?

Posted: April 27th, 2006, 2:30 pm
by lloydalvarez
I know that putting a script in the Scripts > Startup folder will auto run the script when AE launches, but can a script be run automatically when a specific project is opened?

run on project open

Posted: April 27th, 2006, 8:36 pm
by redefinery
I'm not aware of an elegant way to do this (e.g., an onProjectOpen callback). If you're using AE 7, I suppose you can run a repeating task (app.scheduleTask()) that polls app.project, but note that in 7 there's always an open project (i.e., app.project != null).

Also, although you might want to check app.project.file != null, I believe app.project == null when you open a project saved in an earlier version of AE. :-(

Jeff