Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 20, 2009, 04:05 AM   #1
rethish
macrumors member
 
Join Date: Oct 2008
How to Schedule an application?

hi,

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, 11:47 AM   #2
whooleytoo
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 offline   0 Reply With Quote

Reply
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 09:26 PM
Do Not Disturb Schedule sultanoflondon iOS 6 5 Feb 23, 2014 12:54 PM
Application to schedule movies koruki Mac Applications and Mac App Store 1 Jun 26, 2013 02:05 AM

Forum Jump

All times are GMT -5. The time now is 06:05 AM.

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

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