|Jun 3, 2009, 05:51 AM||#1|
Scheduling an application
I want to launch my application using a time based scheduling. I have created a plist by setting the keys: Label, onDemand, ProgramArguments and
startCalenderInterval. And I placed the plist in /Library/LaunchDaemons.
Then i loaded the plist manually using the terminal. It works fine on the specified time.
I want the plist to be loaded automatically on the specified time and launch my application.
How can be it done?
Is there any thing to be set additionally?
Is LaunchDaemons the correct folder to place the plist?
thankyou in advance
|Jun 3, 2009, 09:14 AM||#2|
This probably isn't the Apple-y way to do things, but I don't know what is... so here it goes:
and take a look at the options for scheduling things in crontab. You can run:
To edit the current users crontab and have things run at a certain time, on a repeating schedule.
If you just need something to run once, you can do this with at.
to see the options.
Otherwise, others will have to chime in with an Appl-ier way to achieve this.
|Jun 3, 2009, 11:38 AM||#3|
We need more information:
What does your program do? Does it have a GUI (and therefore should not in principal be a daemon)? Does it need to launch when there is no user logged in? What display context are you trying to put it in (LoginWindow, Aqua, System, etc)?
|Jun 5, 2009, 02:07 AM||#5|
I need to launch TextEdit Application on a specified time. I created schedule application which create a plist file consisting of three property keys : label , Program argument, startcalendarinterval. and save it in the /Library/LaunchDaemons folder.
But it is not working.
Then i saved the plist file in ~/Library/LaunchAgents folder and i
After i logged in, then the textedit application luanched on the specified time.
Again i saved the plist file in the same location. But i didn't logged out this time. The application is not launched.
what is the reason for this behaviour?
How can i launch the application without logging out?
Last edited by rethish; Jun 12, 2009 at 06:35 AM.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|What's a good application to program and create an application with on OSX?||rebello95||Mac Programming||3||Nov 9, 2011 08:12 AM|
|How to Schedule an application?||rethish||Mac Programming||1||Jul 20, 2009 12:47 PM|
|Good calendar/schedule reminder application||HelloMotto||iPod touch||6||Jan 12, 2009 02:22 PM|
|Schedule an Email ?||jersey||Mac Applications and Mac App Store||0||Mar 30, 2008 05:37 PM|
All times are GMT -5. The time now is 05:26 AM.