|Jul 20, 2009, 05:05 AM||#1|
How to Schedule an application?
I want to schedule my application on a specified time.
When the application is not running , the application should open on the specified time and process the scheduled task .
If the application is running , the scheduled task should be processed within the application [without opening in a new application].
I had tried using a plist file and launchd to do it, but it always opens in a new application.
Is this can be done using applescript ?
thank you in advance.
|Jul 20, 2009, 12:47 PM||#2|
There are probably a few ways of doing it.
You could leave a helper application running, and let that do the scheduling. But, that might be a waste of resources.
You could use launchd to launch a tiny 'launcher' process. This would check if your app is running, if so send it an NSNotification to start the task. If it's not running, launch your app and send it the NSNotification. Then the launcher app can quit.
Mac <- Macintosh <- McIntosh apples <- John McIntosh <- McIntosh surname <- "Mac an toshach" <- "Son of the Chief"
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|How to schedule an app to run?||124151155||Mac Applications and Mac App Store||3||Mar 5, 2010 03:47 AM|
|How to make an application start on startup||srfval||OS X||3||Nov 6, 2008 08:42 AM|
|How To Delete An Application For Good?||youashwag||Mac Basics and Help||17||Aug 28, 2008 04:37 PM|
|how to close an application created with script editor||bitstomper||Mac Programming||7||Mar 1, 2008 09:38 AM|
|How to launch an application from the keyboard||erich8||Mac Basics and Help||7||Aug 10, 2006 09:22 PM|
All times are GMT -5. The time now is 01:42 PM.