| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I recently said ...I have a script that gets some of Mail's Mailbox Behaviors and if not set correctly it ... 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: http://lists.apple.com/mailman/options/applescript-users/email@hidden Archives: http://lists.apple.com/archives/applescript-users This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.