• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Launchd Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Launchd Problems (From: Pierce Freeman <email@hidden>)

  • Prev by Date: Launchd Problems
  • Next by Date: Re: Unable to send user input string to Webster Dictionary Application using variable
  • Previous by thread: Launchd Problems
  • Next by thread: Another Indesign CS4 question
  • Index(es):
    • Date
    • Thread