|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Phillip, On Sep 17, 2009, at 11:09 PM, Philip Aker wrote: I think you haven't followed the documentation or grokked the nature of launchd agents because the example above is still horribly wrong. Firstly, launchd is looking for an _executable_ not a script, so you have to use an executable like osascript to run the script. Secondly, the "Program" and "ProgramArguments" are an XML representation of <x-man-page://3/execvp> and mostly likely written so that they can be loaded into a format suitable for an NSTask-like invocation with a minimum amount of effort. Everyone has to follow that format for this kind of agent. And thirdly, in this case, you only need the StartCalendarInterval for the key/value pair. Now we're getting somewhere. I modified your script - For some reason .scpt's don't behave well with Snow Leopard. So went back to .app. The "/usr/bin/osascript" didn't work so removed it. Here's the plist as IT WORKS. <?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.playsound</string> <key>Program</key> <string>/bin/sh</string> <key>ProgramArguments</key> <array> <string>sh</string> <string>-c</string> <string>/Library/Scripts/Universal\ Scripts/playMantelSound.app</string> </array> <key>StartCalendarInterval</key> <dict> <key>Minute</key> <integer>0</integer> </dict> </dict> </plist> Many THANKS, now on to the rest of the plists. 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: Tom Robinson <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>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
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.