In article <ba9751d9-43b6-4dd4-8410->,
wrote:
> I've looked at PlistBuddy, defaults and plutil and I've done quite a bit of
> googling but cannot come up with a method to easily create a plist for a
> script to run in launchd as I would have previously done with cron. I
> thought the natural progression was for stuff to get easier (esp. with Apple)
> but it appears that chaos theory is wrong after all.
To create it from a command-line, first off it's a multi-line file with
multiple parameters. I looked at moving my cron job to launchd and
found launchd on 10.6.8 couldn't do what I wanted with cron (run Mail if
and only if it's not already running, run every 15 minutes).
If I had to create a .plist file, I'd used perl. There may even be a
CPAN module for it. If not, you'll have to familarize yourself with the
grammar of the files by reading Apple's docs on launchd, then write code
to generate the file. I read through Apple's docs on launchd. They're
not very well written or are just overly pedantic.
In any case, you've got some reading to do.
--
DeeDee, don't press that button! DeeDee! NO! Dee...
[I filter all Goggle Groups posts, so any reply may be automatically ignored]