Re: Mail, count of visible messages
Re: Mail, count of visible messages
- Subject: Re: Mail, count of visible messages
- From: Luther Fuller <email@hidden>
- Date: Tue, 07 Jul 2015 18:18:50 -0500
I took a look at my Mail scripting. Perhaps this will help. Here is how I get the frontmost message viewer:
set frontViewer to (some message viewer whose index is 1)
And here are some examples of how I use frontViewer :
set mailBoxList to (selected mailboxes of frontViewer) as list
tell application "Mail" to set selected messages of frontViewer to msgList
set selected mailboxes of frontViewer to {mailbox actionBox}
set selected mailboxes of frontViewer to {boxRef of mboxRec}
tell application "Mail" to set visible messages of frontViewer to (messages of (boxRef of mboxRec))
set selected mailboxes of frontViewer to {}
set selected mailboxes of frontViewer to {boxRef of mboxRec}
set selected mailboxes of frontViewer to {trash mailbox}
set visible messages of frontViewer to oldMessageList
I know these are isolated lines of code, but perhaps they will suggest something which will help.
|
_______________________________________________
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