• 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 user agent applescript do shell script error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launchd user agent applescript do shell script error


  • Subject: Re: launchd user agent applescript do shell script error
  • From: Robert Poland <email@hidden>
  • Date: Mon, 31 Oct 2011 09:03:23 -0600


On Oct 31, 2011, at 8:33 AM, Zack Jarrett wrote:

A couple years ago I had a similar problem with an AppleScript that was run by launchd.  My problem was solved by making sure to load the script with the -S option in launchctl.  That is the sessiontype option and if I remember correctly using -S Aqua is what it took to make my AppleScript run in the right context.

Just an FYI for next time.
Zack

Zack,

Could you elaborate on the -S option (example). The man command is the usual geek speak.

I've been using the following for years with no problem;

launchctl load {plist file} to load the job,
launchctl unload {plist file} to unload it,
launchctl list to list all plist jobs running.
launchctl help to get more information.


Robert 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

  • Follow-Ups:
    • Re: launchd user agent applescript do shell script error
      • From: Zack Jarrett <email@hidden>
References: 
 >Safari Status Bar (From: Robert Poland <email@hidden>)
 >launchd user agent applescript do shell script error (From: Jak Piper <email@hidden>)
 >Re: launchd user agent applescript do shell script error (From: Jak Piper <email@hidden>)
 >Re: launchd user agent applescript do shell script error (From: Alex Zavatone <email@hidden>)
 >Re: launchd user agent applescript do shell script error (From: Jak Piper <email@hidden>)
 >Re: launchd user agent applescript do shell script error (From: Zack Jarrett <email@hidden>)

  • Prev by Date: Re: Getting record items of a sublist
  • Next by Date: Re: Getting record items of a sublist
  • Previous by thread: Re: launchd user agent applescript do shell script error
  • Next by thread: Re: launchd user agent applescript do shell script error
  • Index(es):
    • Date
    • Thread