Re: LaunchD and applescript
Re: LaunchD and applescript
- Subject: Re: LaunchD and applescript
- From: Stan Cleveland <email@hidden>
- Date: Mon, 21 Jun 2010 11:48:13 -0700
- Thread-topic: LaunchD and applescript
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