Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

thingsis

macrumors newbie
Original poster
Oct 25, 2008
29
0
Germany
Hi,

I am writing an application that needs to automatically remind the user of a task or even perform the task for the user. It is basically a script that needs to be executed. Now my question is would it be better to do this using iCal events / alarms or should I go for launchd? iCal seems to have the advantage of not having to have admin privileges to set those events, but launchd might be better suited for execution of a script. What would be the advantages of either one? Also, how do they behave if the computer is switched off while the event occurs?
The whole program will basically perform a backup of some user files.

Thanks,
thingsis
 
...but launchd might be better suited for execution of a script.

You can run a script from an iCal alarm. I don't have any experience with what you're trying to do, so launchd may still be the better way to go (I have no idea), but I just wanted to point out that you can launch scripts with iCal alarms if that helps at all.
 
Hi,
thanks for your replay. I was aware of that possibility. I am pretty sure that both options would actually work. I just do not want to make the wrong decision and choose the better one. I guess this is a pretty luxurious problem ;)
thingsis
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.