Re: Mailbox question
Re: Mailbox question
- Subject: Re: Mailbox question
- From: Philip Aker <email@hidden>
- Date: Tue, 17 Feb 2009 19:06:32 -0800
On 2009-02-17, at 16:33:09, Michelle Steiner wrote: This works:
tell application "Mail" set box to mailboxes repeat with i from 1 to count box item i of box end repeat end tell
This doesn't:
tell application "Mail" set box to mailboxes repeat with i from 1 to count box item i of box is in (selected mailboxes of message viewer 1) end repeat end tell
"item i" is selected, and the error is "Can’t make «class mbxp» \"Applescript/" of application \"Mail\" into type vector."
Seems like a bug to me (vector ≠ list).
tell application "Mail" set res to {} set em to get every mailbox set sm to (get selected mailboxes of message viewer 1) repeat with i from 1 to count of em set m to item i of em repeat with j from 1 to count of sm set s to item j of sm if (m is equal to s) then set end of res to m end if end repeat end repeat res end tell
Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@ Democracy: Two wolves and a sheep voting on lunch.
|
_______________________________________________
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