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: Jim Weisbin <email@hidden>
- Date: Wed, 30 Sep 2015 21:15:46 -0400
I am writing an AppleScript to be launched periodically by launchd (yes, I'm back to working on my Dead Man Project for those of you who remember) and I find that "display dialog" messages disappear into the ether. I read somewhere that Daemons aren't supposed to communicate with losers, er, users so I assume the same applies to Launch Agents.
I am getting around it now by writing to a file. I don't really see a need for the final product to communicate but I make extensive use of "display dialog" for debugging, tracing, etc. Any ideas how I can accomplish this with a Launch Agent script?
You could use growl: http://growl.info/documentation/applescript-support.php#simpleNotificationSampleCode
Or you can email or text yourself. I have numerous launch daemons set up to email me at my Verizon SMS address (<my phone number>@ vtext.com). For example, if a UPS goes off line (on battery) I get an instant text notification.
Actually it can get pretty annoying, but gotta make a living.
Jim Weisbin | C.T.O. | human
|
_______________________________________________
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