Re: Applescript with Mail eat the Apple!…
Re: Applescript with Mail eat the Apple!…
- Subject: Re: Applescript with Mail eat the Apple!…
- From: Philip Aker <email@hidden>
- Date: Sat, 19 Apr 2008 06:17:53 -0700
On 08-04-19, at 05:54, awaw wrote: A very strange behavior!
Give to a mailbox the name "Apple". Under application Mail there is no problem.
But in Applescript : Tell application "Mail" set Boxes to mailboxes whose its name of container is missing value …/… (* Boxes is a list which contains all mailboxes except the "Apple" Mailbox!
If you rename it, the box appears in the list. If you rename it "Apple" again the box disappears of the list…
"Apple" is like a reserved word in Mail or in Applescript!
If "Apple" is the name of a submailbox : no problem *)
It's not a real problem when we know it… just bizarre!
Curious. I have a top level mailbox named " apple". This works:
tell application "Mail" set mboxen to every mailbox whose name of its container is missing value end tell
|
_______________________________________________
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