Re: cron/Launchd Editor
Re: cron/Launchd Editor
- Subject: Re: cron/Launchd Editor
- From: Philip Aker <email@hidden>
- Date: Tue, 22 Sep 2009 11:03:29 -0700
On 2009-09-22, at 08:49:51, Robert Poland wrote: Guess I'm still confused;
This plist/launch agent, when loaded. starts immediately and runs constantly instead of only running only at 9:59AM, every day. Am I missing something?
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" " http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.rpoland.AlarmClockStart</string> <key>OnDemand</key> <false/>
The OnDemand key is obsolete and probably the main factor in restarting the agent continuously. The example I sent previously did not use it.
<key>Program</key> <string>/bin/sh</string> <key>ProgramArguments</key> <array> <string>sh</string> <string>-c</string> <string>/usr/bin/osascript /Library/Scripts/Universal\ Scripts/AlarmClockProStart.app</string>
</array> <key>StartCalendarInterval</key> <dict> <key>Day</key> <integer>0</integer> <key>Hour</key> <integer>9</integer> <key>Minute</key> <integer>59</integer> <key>Month</key> <integer>0</integer> </dict>
I think this should be:
<dict> <key>Hour</key> <integer>9</integer> <key>Minute</key> <integer>59</integer> </dict>
Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden