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

Error -609


  • Subject: Error -609
  • From: Luther Fuller <email@hidden>
  • Date: Fri, 06 Nov 2009 11:16:00 -0600

I recently said ...

I have a script that gets some of Mail's Mailbox Behaviors and if not set correctly it ...
1. Quits Mail;
2. Writes the correct behaviors to com.apple.mail.plist;
3. Activates Mail.

In Snow Leopard, it works perfectly.
In Leopard (10.5.8), I get Error = -609, Mail got an error. Connection is invalid.
Consistently, every time.

Fixed the problem!

My original script did something like this ...

tell application "Mail"
try
set frontViewer to (some message viewer whose index is 1)
on error
error "A message viewer window must be open and frontmost in Mail."
end try
my setMailboxBehavior(frontViewer) -- verify and set common mailbox behaviors
set mailBoxList to (selected mailboxes of frontViewer) as list

It didn't cause a problem in Snow Leopard, but in Leopard, whenever setMailboxBehavior quit, then activated Mail, the value of frontViewer was no longer valid and caused the -609 error.

So, I changed the script to ...

my setMailboxBehavior() -- verify and set common mailbox behaviors
tell application "Mail"
try
set frontViewer to (some message viewer whose index is 1)
on error
error ("A message viewer window must be open and frontmost in Mail.")
end try
set mailBoxList to (selected mailboxes of frontViewer) as list

where the handler, setMailboxBehavior, now gets the value of frontViewer internally.
I just tested this in 10.5.8 and the -609 error no longer appears.


 _______________________________________________
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

  • Prev by Date: Re: activating a function key
  • Next by Date: Re: system info delay
  • Previous by thread: Error -609
  • Next by thread: moving disc icons
  • Index(es):
    • Date
    • Thread