• 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: How Can I Get a Launch Agent which is a Script to Talk to Me?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 14:02:45 -0400

On Oct 5, 2015, at 10:27 AM, Axel Luttgens wrote:

>
> Thanks for the details, Steve.
>
> So, your agent is a script run thru osascript.
> You’ve already got some feedback about the limitations of osascript wrt "user interaction" before Mavericks.
>
> Anyway, I quickly tried the following on 10.6.8:
>
> - save this one as application "exampled.app" from Applescript Editor:
>
> 	tell me to activate
> 	display dialog "exampled finished"
>
> - in the plist, change the ProgramArguments key:
>
> 	<key>ProgramArguments</key>
> 	<array>
> 		<string>/Users/sjc/Desktop/exampled.app/Contents/MacOS/applet</string>
> 	</array>
>
> At each logout/login, the "agent" seems to happily display its dialog.

Thanks Axel.  That worked.  It also works with a carbon app.  I actually tried that initially and it didn't work so I headed off down the scpt path.  I'll bet the dialog was there under all the other windows and I just didn't see it :)  Oh well.  Not a total waste of time.  Forced me to learn lot about launchd :)  And, if I ever need  a scpt instead of an app, I know how to do it.

And thanks to all the other guys who helped.


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


References: 
 >Re: How Can I Get a Launch Agent which is a Script to Talk to Me? (From: Christopher Nebel <email@hidden>)
 >Re: How Can I Get a Launch Agent which is a Script to Talk to Me? (From: "S. J. Cunningham" <email@hidden>)
 >Re: How Can I Get a Launch Agent which is a Script to Talk to Me? (From: Axel Luttgens <email@hidden>)
 >Re: How Can I Get a Launch Agent which is a Script to Talk to Me? (From: "S. J. Cunningham" <email@hidden>)
 >Re: How Can I Get a Launch Agent which is a Script to Talk to Me? (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: How Can I Get a Launch Agent which is a Script to Talk to Me?
  • Next by Date: El Capitan Mail - Rule-Based Reply
  • Previous by thread: Re: How Can I Get a Launch Agent which is a Script to Talk to Me?
  • Next by thread: Re: How Can I Get a Launch Agent which is a Script to Talk to Me?
  • Index(es):
    • Date
    • Thread