Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Jul 20, 2009, 05:05 AM   #1
macrumors member
Join Date: Oct 2008
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.
rethish is offline   0 Reply With Quote
Old Jul 20, 2009, 12:47 PM   #2
macrumors 603
whooleytoo's Avatar
Join Date: Aug 2002
Location: Cork, Ireland.
Send a message via AIM to whooleytoo
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"
whooleytoo is online now   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
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

Forum Jump

All times are GMT -5. The time now is 12:42 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC