MACSCRPT Archives

July 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Duane Mitchell <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Sun, 2 Jul 2006 09:36:54 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
 On Sunday, July 02, 2006, at 01:35AM, John Baltutis <[log in to unmask]> wrote:

>The Sent Messages.mbox resides in the folder holding the local user's account.
>Mine's a POP account. Thus, it's in
>~/Library/Mail/POP-<username>@pop-server.<ISP>/Sent Messages.mbox. 10.4.7.

Yes, I went back to take a closer look. There's an "account" object that itself has 5 mailboxes: Inbox, Drafts, Sent Messages, Deleted Messages, and Junk. However, if you have a .mac account (I've got 3) the mailboxes appear differently.

If you run the following script with a non .mac account you will get a list of 5 mailboxes but if you run it with a .mac account you get 0 mailboxes:

tell application "Mail"
	tell account "youraccountName"
		set vMailBoxes to mailboxes
	end tell
end tell

If you run this script

tell application "Mail"
	set vMailBoxes to mailboxes
end tell

You will get a different list of mailboxes that include any .mac folders if you have them and any mailboxes you've setup yourself.

You'll also notice a mailbox that doesn't appear anywhere else but in AppleScript, the Outbox, and the "Sent" messages mailbox appears as "Sent Messages" in AppleScript.

I have this idea that Mail.app started off as being intended to be integrated with the .mac accounts and the iLife products rather than just an email application.

-Duane Mitchell

ATOM RSS1 RSS2