• 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 and applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: LaunchD and applescript
      • From: AndrĂ© Renault <email@hidden>
References: 
 >LaunchD and applescript (From: Joy <email@hidden>)

  • Prev by Date: Re: Capture Word 2004 save and close Events
  • Next by Date: Re: LaunchD and applescript
  • Previous by thread: LaunchD and applescript
  • Next by thread: Re: LaunchD and applescript
  • Index(es):
    • Date
    • Thread