PDA

View Full Version : Run Scripts at Specified Time




Geek 2.0
Feb 18, 2009, 10:24 PM
How would I get my computer to run a script at a given time? Say I want my computer to run a script every morning at 8 AM. How would I do such a thing? Sorry, I'm not too experienced with Applescript or anything along those lines.

Also, as a side question, is there a way to have an Applescript constantly check for something? Or am I thinking of a daemon?



robbieduncan
Feb 19, 2009, 02:52 AM
launchd (http://developer.apple.com/MacOsX/launchd.html) is probably the best way.

You may find lingon (http://tuppis.com/lingon/) more friendly than editing the config manually.

swiftaw
Feb 19, 2009, 03:00 AM
Or, create an event in iCal, then set an alarm, and choose the run script option.