Re: Script to remove AUGD from Subject
Re: Script to remove AUGD from Subject
- Subject: Re: Script to remove AUGD from Subject
- From: Ed Stockly <email@hidden>
- Date: Sun, 11 Jan 2009 10:55:56 -0800
In boxes are not the same as other mail boxes:
tell application "Mail"
mailbox 1 of inbox of message viewer 1
mailbox "INBOX" of account "esla - AOL Mail"
mailbox 11 of account "esla - AOL Mail"
end tell
Each of those commands refers to the same mailbox, but there is no
value of x that will return in inbox in this command:
tell application "Mail.app"
mailbox x
end tell
Inboxes belong to accounts or message viewers.
Most (maybe all) other mailboxes also belong to the application.
Also, depending on the type of account, and how messages are stored
(on the server or not), it may not be possible to copy items into an
inbox.
HTH,
ES
On Jan 11, 2009, at 7:12 AM, Axel Luttgens wrote:
Having a look at Mail's dictionary, it appears that the application
has some top level mailboxes that are reachable through properties.
For example, there is the inbox property.
Being mailboxes, those top level mailboxes may have other mailboxes
as elements; so, let's try this one:
tell application "Mail" to get mailboxes of inbox
It now clearly appears that each account has a mailbox named
"INBOX"; but Mail itself doesn't have such a mailbox.
_______________________________________________
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