Re: Mail scripting once more
Re: Mail scripting once more
- Subject: Re: Mail scripting once more
- From: Luther Fuller <email@hidden>
- Date: Thu, 17 Apr 2008 15:40:35 -0500
First, you have to get Mail's path to the mailbox. If you have a
mailbox named "Stuff", containing a sub-mailbox named "Good",
containing a mailbox named "Very", then the Mail path is ...
set mailboxpath to "Stuff/Good/Very"
But, you will have to write a repeat loop containing this line
set mailboxpath to containerName & "/" & mailboxpath
somewhere to get mailboxpath. (Look-up 'container' in Mail's
dictionary.)
Then you have to ...
set frontViewer to (some message viewer whose index is 1)
set selected mailboxes of frontViewer to {mailbox mailboxpath}
I'm not sure this does exactly what you want, but I hope it's a good
start.
On Apr 17, 2008, at 2:35 PM, awaw wrote:
I begin to be a bit more "familiar" with AppleScript, but…
My "last" difficulty with Mail :
I want, simply, to open the window of a mailbox with a known name.
(same question with an account of the inbox)
I have got that name before in the script.
I list all mailboxes with or not message(s) in it.
I list also mailboxes with or not submailboxes
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.)
I haven't found the path…
_______________________________________________
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