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:07:25 -0400
On Oct 5, 2015, at 5:10 AM, 2551 wrote:
On 1 Oct 2015, at 02:18, S. J. Cunningham <email@hidden> wrote:
I find that "display dialog" messages disappear into the ether.
Haven’t tested this, but you should be able to leverage osascript from within your AppleScript.
E.g.
set debugMsg to "osascript -e \"display dialog \\\"the debugging message I want to send\\\"\"" do shell script debugMsg Best
Phil
Well, that's curious. 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)
... which is the same error launchd throws.
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