Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

select smart mailbox



Can someone please explain my why code mentioned below doesn't work as I'm not smart enough to find out myself.
Tia, Grt


btw "Flags" is a smart Mailbox... The code works fine for a 'non- smart-mailbox' as picked up from the archives: http://lists.apple.com/ archives/applescript-users/2004/Apr/msg00255.html

tell application "Mail"
set theWindow to make new message viewer with properties {visible:true}
delay 1
set selected mailboxes of theWindow to {mailbox "Flags"}
end tell


_______________________________________________
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

This email sent to email@hidden


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.