Re: Launchd Problems
Re: Launchd Problems
- Subject: Re: Launchd Problems
- From: Tom Robinson <email@hidden>
- Date: Thu, 20 Aug 2009 09:29:06 +1200
On 2009-08-20, at 09:12, Pierce Freeman wrote:
I am attempting to get the following launchd agent to run, however
it gives
me an error when I log it with StandardErrorPath (0:1: syntax error: A
unknown token can’t go here. (-2740)):
<?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.pf.Testing</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/osascript</string>
<string>-e</string>
<string>'tell application "Finder"'</string>
Lose the quoting. e.g.:
<key>ProgramArguments</key>
<array>
<string>osascript</string>
<string>-e</string>
<string>tell application id "com.apple.finder" to eject (every disk
whose name is "disk1")</string>
<string>-e</string>
<string>tell application id "com.apple.finder" to eject (every disk
whose name is "disk2")</string>
</array>
Cheers _______________________________________________
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