I got a new harddrive in my iBook a week or so ago and ever since then I've been without my scheduled
jobs as I didn't have the time to set them up again.
In OS X 10.4 Apple replaced
however. You can still use
if you like (my desktop still runs all the jobs I set up years ago) but the preferred method of invoking periodic jobs is now the
turns out to be pretty easy, just create a plist, which is just an XML
file, in the appropriate directory and
will do its thing.
See "Getting started with launchd" on the Apple Developer site.
Here's what the plist for my APOD to desktop script
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<string>Get the latest Astronomy Picture of the Day and set it as the desktop picture</string>
This file is called
and I placed it in the following location:
(create the LaunchAgents folder if it's not there).
No more messing around with difficult to understand crontabs, just drop a file into place and
will run it when needed.