Re: LaunchD and applescript
Re: LaunchD and applescript
- Subject: Re: LaunchD and applescript
- From: André Renault <email@hidden>
- Date: Mon, 21 Jun 2010 20:53:20 +0200
Right. If you ran:
osascript -e 'display dialog "You will never see me... EVER"'
On Mon, Jun 21, 2010 at 20:48, Stan Cleveland
<email@hidden> wrote:
On 6/18/10 7:20 AM, "Joy" wrote:
> I'm trying to setup a launchd to run my applescript. When I manually type in
> launchctl load name.of.plist, it loads, but the applescript requires user
> input and I don't see the dialog box that asks for the user input.
>
> in my plist, the Program Arguments are
>
> osascript
> /path/to/script.app
>
> Am I missing something?
Hi Joy,
The osascript shell program does not allow user interaction, such as the
'display dialog' command. You need to launch the script, not have osascript
read and execute the file contents.
Sorry, but I'm not sure how you'd set that up in a plist/launchd scenario.
You could certainly set up the script application to be a startup item,
unless your requirements call for running it without logging into a user
account.
HTH,
Stan C.
_______________________________________________
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