• 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: On My Mac
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: On My Mac


  • Subject: Re: On My Mac
  • From: Deivy Marck Petrescu <email@hidden>
  • Date: Mon, 1 Jun 2009 19:08:27 -0400


On Jun 1, 2009, at 2:55 PM, Luther Fuller wrote:

I've been working on my On_My_Mac handler (below) yesterday afternoon and all this morning. I haven't been able to improve on the old original, but I did make some minor changes. I did discover, using
set mboxName to (name of selMailbox)
that:
The Inbox is named "Inbox" and its sub-mailboxes are named "INBOX";
The Sent mailbox is names "Sent" and its sub-mailboxes begin with "Sent Messages";
The Trash mailbox is named "Trash" and its sub-mailboxes begin with "Deleted Messages";
The Junk mailbox is named "Junk" and its sub-mailboxes begin with "Junk";
The Drafts mailbox is named "Drafts" and its sub-mailboxes begin with "Drafts".

Mailboxes "On My Mac" have no account.
(But I have encountered error messages that seem to refer to an "On My Mac" account.)

And now my question: Isn't there a simple way to determine if a mailbox is "On My Mac"?
(I've been looking for a long time, but have found nothing.)



Luther
the answer is "Yes".
All the mailboxes that have no account.
They are the first mailboxes. You can reach them directly without calling the account

tell app "Mail"
set l to count mailboxes
repeat with j from 1 to l
display dialog "mailbox " & j &" is an \"On My Mac\" mailbox"
end repeat
to get the others:

tell app "Mail"
tell accounts to tell mailboxes to ...
<  >
end tell


Deivy Petrescu
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: 
 >On My Mac (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Is this a major bug or not?
  • Next by Date: Re: InDesign - CS2 and CS3 duplicate method is different?
  • Previous by thread: Re: On My Mac
  • Next by thread: Re: On My Mac
  • Index(es):
    • Date
    • Thread