PDA

View Full Version : iCal Events/Alarms vs. Launchd




thingsis
Jul 14, 2009, 04:42 AM
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



GorillaPaws
Jul 14, 2009, 09:48 AM
...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.

thingsis
Jul 14, 2009, 10:06 AM
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