| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
Hi Axel, Thanks for your reply. Without your myJob.plist and the code (script?) it is calling, it is rather difficult to tell... Here's the LaunchAgent helper that tries to "hot load" other LaunchAgents that arrive in ~/Desktop/blah. It throws the untrue "No such file or directory" error (maybe a launchd job doesn't like being asked to load another launchd job?): <?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"> <plist version="1.0"> <dict> <key>Debug</key> <string>true</string> <key>Label</key> <string>Backaroo Job Watcher</string> <key>ProgramArguments</key> <array> <string>/bin/launchctl load -F /Users/cpu058/Desktop/Backaroo</string> </array> <key>WatchPaths</key> <array> <string>/Users/cpu058/Desktop/blah</string> </array> </dict> </plist> Without your myJob.plist and the code (script?) it is calling, it is rather difficult to tell... The tiny bit of Applescript that tries (and fails) to load a LaunchAgent is: do shell script "launchctl load ~/Library/LaunchAgents/myJob.plist" As well as the way and the reasons why you are calling launchtl from your ASS application. My application wants to schedule backups, I'm trying to lever launchd's StartCalendarInterval capabilities. I can't think of a better way of informing launchd of a new job than to use "launchctl load". Dave. On 28 May 2008, at 22:18, Axel Luttgens wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Macos-x-server mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macos-x-server/email@hidden This email sent to email@hidden
| References: | |
| >launchctl load hangs when called via AppleScript (From: Dave Gradwell <email@hidden>) | |
| >Re: launchctl load hangs when called via AppleScript (From: Axel Luttgens <email@hidden>) |
| Home | Archives | FAQ | 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 © 2007 Apple Inc. All rights reserved.