• 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: Connection invalid on quit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Connection invalid on quit


  • Subject: Re: Connection invalid on quit
  • From: Paul Berkowitz <email@hidden>
  • Date: Tue, 26 Aug 2003 10:04:34 -0700

On 8/26/03 9:29 AM, "Steve Roy" <email@hidden> wrote:

> Every once in a while I write a script that asks an application to quit and an
> error occurs with the message "Connection invalid".
>
> tell application "Foo" to quit
>
> What is that?
>
That probably means you're doing this from a script editor, and the app in
question is one of those (like all the Cocoa Apple apps) that has to be open
for a script to compile. Once you've quit it, the script can no longer find
the active app it expects to be open, and seems to throw this error rather
than just open it up again. You shouldn't get that error when running the
script as an applet or from a script menu, only when you're in a script
editor. It's probably a bug - or would you rather have the app re-open after
you'd just quit it?



--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Keystroke command limit
  • Next by Date: Re: Keystroke command limit
  • Previous by thread: Connection invalid on quit
  • Next by thread: Re: Connection invalid on quit
  • Index(es):
    • Date
    • Thread