Re: Mail scripting once more
Re: Mail scripting once more
- Subject: Re: Mail scripting once more
- From: "Mark J. Reed" <email@hidden>
- Date: Fri, 18 Apr 2008 08:01:30 -0400
I was trying to figure this out yesterday and didn't find "selected
mailboxes". Good to know. Not the most intuitive dictionary... I
also noticed that "message viewer 1" didn't work. What's up with
that? Bug? The (some message viewer whose I'd is 1) trick is a handy
workaround...
On 4/18/08, awaw <email@hidden> wrote:
> The solution is OK in my context.
>
> set Box to mbox & "/" & submbox -- for example
> set selected mailboxes of message viewers to {mailbox Box}
>
> give the result that I was searching.
>
> Thanks to two contributors
>
> Gérard
>
> Le 17 avr. 08 à 22:38, John Maisey a écrit :
>
> >> 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 (applescript-
> > email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> > Archives: http://lists.apple.com/archives/applescript-users
> >
> > This email sent to email@hidden
> >
>
>
--
Sent from Gmail for mobile | mobile.google.com
Mark J. Reed <email@hidden>
_______________________________________________
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