Re: launchd user agent applescript do shell script error
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