• 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: Accessing/creating mailboxes in Mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing/creating mailboxes in Mail.app


  • Subject: Re: Accessing/creating mailboxes in Mail.app
  • From: Christopher Stone <email@hidden>
  • Date: Sat, 1 Jan 2011 19:41:10 -0600

On Jan 01, 2011, at 08:46, Luther Fuller wrote:
Mmmmmmmm! A little more experimenting. (10.6.5) I find that ...

set mailboxList to mailboxes as list

returns only mailboxes without an account, that is, mailboxes "OnMyMac" plus the mailboxes
"ToDos", "Outbox", "Drafts (MobileMe)", "Sent Messages (MobileMe)", "Deleted Messages", "Deleted Messages (MobileMe)", "Junk", "Junk (MobileMe)"

If you want to see other mailboxes you have to use

set mailboxList to mailboxes of account accountName as list
______________________________________________________________________

Quite right, but no 'as list' is required.

tell application "Mail"
set accountMailboxes to mailboxes of every account
set onMyMacMailboxes to mailboxes
end tell

--
Chris
 _______________________________________________
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: Accessing/creating mailboxes in Mail.app (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Accessing/creating mailboxes in Mail.app
  • Next by Date: Re: Accessing/creating mailboxes in Mail.app
  • Previous by thread: Re: Accessing/creating mailboxes in Mail.app
  • Next by thread: Re: Accessing/creating mailboxes in Mail.app
  • Index(es):
    • Date
    • Thread