• 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: 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
  • Follow-Ups:
    • Re: Mail scripting once more
      • From: awaw <email@hidden>
  • Prev by Date: RE: QuickTime question
  • Next by Date: Re: Mail scripting once more
  • Previous by thread: Re: Mail scripting once more
  • Next by thread: Re: Mail scripting once more
  • Index(es):
    • Date
    • Thread