Opening Smart Mailbox in Mail
Opening Smart Mailbox in Mail
- Subject: Opening Smart Mailbox in Mail
- From: Roy McCoy <email@hidden>
- Date: Wed, 10 Dec 2008 19:22:02 +0100
Dear AppleScripters,
I have a smart mailbox named "Unread" in Mail 3.5 (OS X 10.5.5 on a
MacBook Pro) containing messages that match the condition "Message is
Unread". I have to be careful with this so that messages that have
already been filtered to other, normal mailboxes don't disappear
without having been dealt with, but even so I often want to refresh
the Unread mailbox window to make more room on my screen after having
read some messages and dealt with them if necessary. I created a
simple two-step QuicKeys shortcut that did this for me: cmd-w closed
the Unread window and cmd-opt-n (New Viewer Window) opened it again.
Lately, however, it started opening not the last window closed,
Unread, but rather Inbox. The Unread window was also present behind
the Inbox window at least once, if I'm not mistaken, but now it seems
to be giving me the Inbox window only with the Unread window closed. I
don't know why it's being so obstinate about Inbox, while before it
would reopen whichever mailbox was last closed.
It's probably possible to script opening a mailbox easily, and thus
also (hopefully) a smart mailbox, but the the sample "Open
Mailbox.scpt" is too complex for me and doesn't provide immediate help
with the simple task of opening an individual (smart) mailbox. I
thought it might be a new version of Mail, but Mail was updated in
early September or so, and the QuicKeys shortcut worked consistently
until the last week or two. In any event it seems a good occasion for
learning how to script opening a mailbox. I searched in the Mail
dictionary and Googled on terms I thought might find an appropriate
sample script for me, but didn't wind up with anything that worked. I
found things that apparently worked for other people, but when I tried
to do what I at least thought was exactly the same thing, it would say
that something didn't understand something, or whatever. Sometimes the
script seems to run okay and doesn't give an error, but the mailbox
selected in the viewer doesn't change.
Thanks,
Roy McCoy
Rotterdam, NL
_______________________________________________
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