Re: Opening Smart Mailbox in Mail
Re: Opening Smart Mailbox in Mail
- Subject: Re: Opening Smart Mailbox in Mail
- From: Roy McCoy <email@hidden>
- Date: Sun, 14 Dec 2008 17:26:00 +0100
I didn't get a reply on the message below a couple of days ago, but
this may have been my own fault for not expressing the question more
simply - like, "How does one script opening a mailbox in Mail?" I'll
take a closer look at "Open Mailbox.scpt" and try again to figure it
out if nobody can tell me, but as I said before, I don't need the
complexity of this sample script, just a simple command that opens a
Mail mailbox.
Thanks,
Roy McCoy
Rotterdam, NL
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