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: 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