• 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: Error -609
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error -609


  • Subject: Re: Error -609
  • From: "Stockly, Ed" <email@hidden>
  • Date: Fri, 08 Feb 2008 12:14:53 -0800
  • Thread-topic: Error -609

>>luther>> Last week I wrote a relatively simple AppleScript application that
creates multiple, switchable desktops in Tiger (10.4.11 PPC G4).  (Something
like Leopard's Spaces, but without a fancy GUI.) This week I rounded-off the
rough edges and fixed a bug. Yesterday, I posted it to Version Tracker.

>>"Error = -609 Finder got an error: Connection is invalid." (My error  dialog.)

>> I'm not sure, but I don't think this is the kind of error I can fix. I can't
find additional info on this error at Apple's site.

>> Does anyone know more about the nature of this error?

I've seen this error after Finder has quit, either from a script command or
due to a crash (Finder not responding; Finder Unexpectedly Quit).

In some cases, a delay of one second or more in your script will avoid the
problem.

Tell application "Finder" to quit
Delay 1
Tell application "Finder" to activate

If you're script is not deliberately quitting the finder, (or it could be
some other app) then something is causing the finder to crash, figuring out
what that is and fixing it will also avoid the problem.

If you can narrow down where the error is happening, something like this
might help:

repeat
Try
Tell application "Finder" to activate
Exit repeat
On error errText number errNum

If errNum = -609 then
Delay 2
Else
-- your error handling routine
Exit repeat
End if
End repeat
(not tested)

HTH,

ES

 _______________________________________________
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: Error -609
      • From: Peter Baxter <email@hidden>
    • Re: Error -609
      • From: Peter Baxter <email@hidden>
  • Prev by Date: Re: About login item deletion
  • Next by Date: Re: About login item deletion
  • Previous by thread: Re: Error -609
  • Next by thread: Re: Error -609
  • Index(es):
    • Date
    • Thread