Page 1 of 1

"on Open" script ?

Posted: September 20th, 2005, 3:48 pm
by calier
Does anyone knows if there is a way to run a script when you're opening or closing a project (from the "File", " Open" menu) ?
This would be a really usefull possibility.

Thanks.

Posted: September 21st, 2005, 6:32 am
by byronnash
I don't think there is a way to run a script from that method. As far as I know, the only way to execute a script is through the "Run Script" menu, inside another script, from a palette, or from the command line. You could incorporate an Open or Closing action into a script. Maybe that could accomplish your goal?

Posted: September 21st, 2005, 8:54 am
by calier
ok ... i was thinking about using my acual pallette menu to launch the script, but i just wanted to make sure that nobody would use the "File" " Open" method anymore ... that's fine i'll just do that then.

Thanks