autorun script on project launch?

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

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?
User avatar
redefinery
Posts: 112
Joined: April 1st, 2005, 8:16 pm
Location: CA
Contact:

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
Post Reply