• 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: Zack Jarrett <email@hidden>
  • Date: Mon, 31 Oct 2011 07:33:38 -0700

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

On Oct 29, 2011, at 3:07 AM, Jak Piper wrote:

User agent, despite loading for the user, ran as root, thus the whoami was wrong for dscl lookup, changed that to pull logged in user, re-wrote as bash, happy days, full automated signatures in outlook :)

 _______________________________________________
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: Robert Poland <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>)

  • Prev by Date: QT Pro features
  • 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