• 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: Tommy Bollman <email@hidden>
  • Date: Mon, 21 Jun 2010 21:39:37 +0200

What you can do, is having the script run by osa script run an applet.
I have done that and that worked fine.

On 21. juni 2010, at 20.53, André Renault wrote:

> Right. If you ran:
> osascript -e 'display dialog "You will never see me... EVER"'
> You'd get an error
> André Renault
> email@hidden
> email@hidden
>
>
> 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
>>
> _______________________________________________
> 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

Best regards



Tommy Bollman
--------------------------------------------------------------------------------------------------
Mollison's Bureaucracy Hypothesis:
	If an idea can survive a bureaucratic review
	and be implemented it wasn't worth doing.

 _______________________________________________
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: Joy <email@hidden>
References: 
 >LaunchD and applescript (From: Joy <email@hidden>)
 >Re: LaunchD and applescript (From: Stan Cleveland <email@hidden>)
 >Re: LaunchD and applescript (From: André Renault <email@hidden>)

  • Prev by Date: Re: LaunchD and applescript
  • Next by Date: Folder actions and Leopard
  • Previous by thread: Re: LaunchD and applescript
  • Next by thread: Re: LaunchD and applescript
  • Index(es):
    • Date
    • Thread