|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|
|Schedule emails to be sent later||mkrndll||Mac Applications and Mac App Store||6||Jul 11, 2014 10:26 PM|
|Do Not Disturb Schedule||sultanoflondon||iOS 6||5||Feb 23, 2014 01:54 PM|
|Application to schedule movies||koruki||Mac Applications and Mac App Store||1||Jun 26, 2013 03:05 AM|
All times are GMT -5. The time now is 09:24 PM.