• 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 Search surrogate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail Search surrogate


  • Subject: Re: Mail Search surrogate
  • From: Luther Fuller <email@hidden>
  • Date: Fri, 10 Apr 2009 08:56:52 -0500

On Apr 9, 2009, at 7:22 PM, Luther Fuller wrote:

On Apr 9, 2009, at 6:44 PM, Gil Dawson wrote:

Evidently, some mailboxes belong to an account, e.g.:

 mailbox "INBOX" of account "Dominant" of application "Mail"
 mailbox "Drafts" of account "Dominant" of application "Mail"
 mailbox "Sent Messages" of account "Dominant" of application "Mail"
 mailbox "Deleted Messages" of account "Dominant" of application "Mail"
 mailbox "INBOX" of account "Enkidu" of application "Mail"
 mailbox "Drafts" of account "Enkidu" of application "Mail"
 mailbox "Deleted Messages" of account "Enkidu" of application "Mail"

These are not included in "mailboxes".  I.e., "set MainBoxes to (mailboxes as list)" does not retrieve any of these.  That's why the code above has to fetch these separately.

Some mailboxes are missing (e.g., "Sent Messages" of account "Enkidu"), I hope because they are empty.

This morning, I took the time to investigate this further. You are correct, there are mailboxes that are not included in "set MainBoxes to (mailboxes as list)". Try this ...

tell application "Mail"
activate
set acntList to (every account) as list
(name of every mailbox of (item 2 of acntList)) as list
log the result
end tell

You will see the mailboxes associated with the account. The confusing thing is that 'mailboxes as list' does seem to contain some mailboxes that do belong to an account.

 _______________________________________________
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: Unicode Character in File Name (From: CYB <email@hidden>)
 >Re: Unicode Character in File Name (From: Luther Fuller <email@hidden>)
 >Re: Unicode Character in File Name (From: "Mark J. Reed" <email@hidden>)
 >Re: Unicode Character in File Name (From: Luther Fuller <email@hidden>)
 >Re: Unicode Character in File Name (From: Christopher Nebel <email@hidden>)
 >Re: Unicode Character in File Name (From: Luther Fuller <email@hidden>)
 >Re: Unicode Character in File Name (From: Christopher Nebel <email@hidden>)
 >Re: Unicode Character in File Name (From: "Mark J. Reed" <email@hidden>)
 >Re: Unicode Character in File Name (From: Doug McNutt <email@hidden>)
 >Mail Search surrogate (From: Gil Dawson <email@hidden>)
 >Re: Mail Search surrogate (From: Luther Fuller <email@hidden>)
 >Re: Mail Search surrogate (From: Gil Dawson <email@hidden>)
 >Re: Mail Search surrogate (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: DS_Store files
  • Next by Date: GUI scripting Flash
  • Previous by thread: Re: Mail Search surrogate
  • Next by thread: Re: Unicode Character in File Name
  • Index(es):
    • Date
    • Thread