• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mail scripting once more
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Mail scripting once more (From: John Maisey <email@hidden>)
 >Re: Mail scripting once more (From: awaw <email@hidden>)

  • Prev by Date: Re: Keystroke
  • Next by Date: Re: Passing argumenst to C executable from Apple script
  • Previous by thread: Re: Mail scripting once more
  • Next by thread: Opening files in Illustrator CS3
  • Index(es):
    • Date
    • Thread