• 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
Launchd Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Launchd Problems


  • Subject: Launchd Problems
  • From: Pierce Freeman <email@hidden>
  • Date: Wed, 19 Aug 2009 14:12:40 -0700
  • Thread-topic: Launchd Problems

Hi Everyone:

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>
<string>-e</string>
<string>'set didQuit to (path to home folder as string) &amp;
".myApp"'</string>
<string>-e</string>
<string>'if (exists file didQuit) then'</string>
<string>-e</string>
<string>'tell application "TestApp"'</string>
<string>-e</string>
<string>'activate'</string>
<string>-e</string>
<string>'end tell'</string>
<string>-e</string>
<string>'end if'</string>
<string>-e</string>
<string>'end tell'</string>
</array>
<key>StandardErrorPath</key>
<string>/Users/pf/Desktop/Problem.log</string>
<key>StartInterval</key>
<integer>20</integer>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>


Thanks for any help!  I really am not getting what I'm doing wrong...


 _______________________________________________
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

  • Follow-Ups:
    • Re: Launchd Problems
      • From: Tom Robinson <email@hidden>
  • Prev by Date: Re: Unable to send user input string to Webster Dictionary Application using variable
  • Next by Date: Re: Launchd Problems
  • Previous by thread: Re: Find/replace
  • Next by thread: Re: Launchd Problems
  • Index(es):
    • Date
    • Thread