Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: cron/Launchd Editor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cron/Launchd Editor



Philip,

I take it that the use of the zero in the following has also been depreciated???

<key>Day</key>
<integer>0</integer>
<key>Hour</key>
<integer>0</integer>
<key>Month</key>
<integer>0</integer>


On Sep 22, 2009, at 12:03 PM, Philip Aker wrote:

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>



</dict>
</plist>

Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.


Bob Poland - Fort Collins, CO



 _______________________________________________
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

References: 
 >cron/Launchd Editor (From: Robert Poland <email@hidden>)
 >Re: cron/Launchd Editor (From: Philip Aker <email@hidden>)
 >Re: cron/Launchd Editor (From: Robert Poland <email@hidden>)
 >Re: cron/Launchd Editor (From: Philip Aker <email@hidden>)
 >Re: cron/Launchd Editor (From: Robert Poland <email@hidden>)
 >Re: cron/Launchd Editor (From: Philip Aker <email@hidden>)
 >Re: cron/Launchd Editor (From: Robert Poland <email@hidden>)
 >Re: cron/Launchd Editor (From: Philip Aker <email@hidden>)
 >Re: cron/Launchd Editor (From: Robert Poland <email@hidden>)
 >Re: cron/Launchd Editor (From: Philip Aker <email@hidden>)
 >Re: cron/Launchd Editor (From: Robert Poland <email@hidden>)
 >Re: cron/Launchd Editor (From: Philip Aker <email@hidden>)
 >Re: cron/Launchd Editor (From: Philip Aker <email@hidden>)
 >Re: cron/Launchd Editor (From: Robert Poland <email@hidden>)
 >Re: cron/Launchd Editor (From: Philip Aker <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.