Re: Mail scripting once more
Re: Mail scripting once more
- Subject: Re: Mail scripting once more
- From: John Maisey <email@hidden>
- Date: Thu, 17 Apr 2008 21:38:39 +0100
BUT, how to force Mail to put the it's active window to that mailbox
and after show (open) the window of that mailbox?
(Like when I click on a mailbox in Mail Application.)
Use "selected mailboxes ". The following for example opens the 'sent'
items of my primary mail account:
----
tell application "Mail"
set myMailBoxes to (mailboxes of account 1)
set selected mailboxes of message viewers to {(item 3 of myMailBoxes)}
end tell
----
"selected mailboxes " takes a list, so you can open a set of mailboxes.
Best wishes
John Maisey
www.nhoj.co.uk
_______________________________________________
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