Re: Mail scripting : How to select…
Re: Mail scripting : How to select…
- Subject: Re: Mail scripting : How to select…
- From: Philip Aker <email@hidden>
- Date: Fri, 09 May 2008 17:48:31 -0700
On 08-05-09, at 15:55, Luther Fuller wrote: On May 9, 2008, at 4:50 PM, Axel Luttgens wrote:
I guess you are in fact thinking about the "custommailbox/submailbox/subsubmailbox" naming scheme.
But that seems to only apply to user-defined mailboxes, as a kind of shortcut.
The general rule for naming is: mailbox "subsubmailbox" of mailbox "submailbox" of mailbox "custommailbox" (with in this case the top-level piece being a mailbox, not an account).
By asking for
name of mailbox "custommailbox/submailbox/subsubmailbox"
you'll anyway get "subsubmailbox", not "custommailbox/submailbox/subsubmailbox".
I've just finished rewriting some Mail code that worked in Tiger so that it would work in Leopard. Surprisingly, the only change I found is that in Tiger mailbox names are slash-delimited, while in Leopard, they are colon-delimited.
???
I run this on Leopard 10.5.2:
tell application "Mail" properties of mailbox "apple/applescript" end tell
and it works fine. But if I run this:
tell application "Mail" properties of mailbox "apple:applescript" end tell
I get an error.
Philip Aker |
_______________________________________________
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