View Full Version : Open a file when application launch

Jun 15, 2009, 11:48 PM

I need to open the saved project file which is stored in the document folder by using scheduling.

I created a plist file to launch my application at the scheduled time and and its working well. But I need to load the saved project file, when the application launches.

How can I do it?
What are the procedures to do it?

Thank you in advance.

Jun 16, 2009, 08:13 AM
Is this your application, or someone else's? If the latter, I'm not aware of any built-in ways of doing this. I think you'd have to write a helper process to track when apps get launched.

Jun 16, 2009, 03:31 PM
For the scheduled task, you could always use the 'open' command instead of calling the application directly.

'/usr/bin/open' with arguments '-a <app name> <document path>' will do the trick I'd think.