autorun script on project launch?
Moderator: Paul Tuersley
- 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?
- 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
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