• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Mailbox question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mailbox question


  • Subject: Mailbox question
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 17 Feb 2009 17:33:09 -0700

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."

-- Michelle

-- 
I am only one, but still I am one. I cannot do everything, but still I can do something; and because I cannot do everything, I will not refuse to do something I can do.  --Edward Everett Hale


 _______________________________________________
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

  • Follow-Ups:
    • Re: Mailbox question
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: Weird iTunes Problem
  • Next by Date: Re: Mailbox question
  • Previous by thread: Re: Weird iTunes Problem
  • Next by thread: Re: Mailbox question
  • Index(es):
    • Date
    • Thread