Re: How Can I Get a Launch Agent which is a Script to Talk to Me?
Re: How Can I Get a Launch Agent which is a Script to Talk to Me?
- Subject: Re: How Can I Get a Launch Agent which is a Script to Talk to Me?
- From: "S. J. Cunningham" <email@hidden>
- Date: Mon, 05 Oct 2015 06:57:27 -0400
On Oct 5, 2015, at 6:46 AM, Shane Stanley wrote:
> On 5 Oct 2015, at 9:07 PM, S. J. Cunningham <email@hidden> wrote:
>>
>> When I run this:
>>
>> set debugMsg to "osascript -e \"display dialog \\\"the debugging message I want to send\\\"\""
>> do shell script debugMsg
>>
>> I get this:
>>
>> AppleScript Runtime Error:
>> 0:53: execution error: No user interaction allowed. (-1713)
>
> It's your OS again. From the 10.9 AS Release Notes:
>
>> osascript(1) is now a “UI element” process and can therefore display its own UI, such as using display dialog; telling another application such as System Events is no longer necessary.
Hmm. That might be a workaround for me. What System Event do you suppose they are referring to? Presumably one which can do the equivalent of "display dialog".
Steve
------------------
OS X 10.6.8, AppleScript 2.1.2
_______________________________________________
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