• 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
launch behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

launch behavior


  • Subject: launch behavior
  • From: "S. J. Cunningham" <email@hidden>
  • Date: Sat, 07 Nov 2015 15:08:58 -0500
  • X_v_e_cd: c7eef2e0dd73e0678d5a739e679f89a4
  • X_v_r_cd: da03c00deb90664fd7fadc01f3cbd032

I have an script application (not stay open), called "Dead Man Agent.app" with handlers, getInfo() and putInfo(someInfo) which pass/receive information to/from a client script.  I call it like this:

tell application "Dead Man Agent"
launch
set theInfo to getInfo()
end tell

... and later, after changing the info,

tell application "Dead Man Agent"
launch
putInfo(someInfo)
end tell

Sometimes the putInfo works, sometimes it gets a "connection invalid" message.  If I copy the exact same call to a stand alone test script, it always works.

It seems as if the first "launch" somehow screws up the second one.  But I get the same error message if I take the second one out.

As I understand it, when you launch an app, it opens but does not run.  How long does it stay open?  Does it close after each call or do I need a separate launch for each call?  Do I have to wait for it to finish closing before making the second call?  How can I tell if it is still open?


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

  • Follow-Ups:
    • Re: launch behavior
      • From: "S. J. Cunningham" <email@hidden>
  • Prev by Date: Re: applescripting sub mailboxes in Mail
  • Next by Date: Re: launch behavior
  • Previous by thread: Re: applescripting sub mailboxes in Mail
  • Next by thread: Re: launch behavior
  • Index(es):
    • Date
    • Thread