• 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
Re: scripting mail to select mailboxes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scripting mail to select mailboxes


  • Subject: Re: scripting mail to select mailboxes
  • From: cricket <email@hidden>
  • Date: Wed, 12 Mar 2003 14:18:52 -0800

On Wednesday, March 12, 2003, at 1:20 PM, David P. Baker wrote:

set selected mailboxes of message viewer 1 to {trash mailbox, in mailbox}
get selected mailboxes of message viewer 1
-- {in mailbox, trash mailbox}

set selected mailboxes of message viewer 1 to {drafts mailbox, sent mailbox, mailbox "Stuff" of account "email@hidden"}
get selected mailboxes of message viewer 1
-- {in mailbox, trash mailbox}

The mailbox class is part of the account class, so it won't work if nested in a 'tell message viewer' block. So, try this:

set theMailbox to mailbox "Stuff" of account "email@hidden"
tell message viewer 1
set selected mailboxes to {drafts mailbox, sent mailbox, }
get selected mailboxes
end tell

Applescript is strict about containment hierarchy.

- cricket

----->
Software Entomologist  Mail for Mac OS X
http://www.apple.com/macosx/jaguar/mail.html
---------->
See? We even have to whisper. It's a whole new world.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: scripting mail to select mailboxes
      • From: Jon Pugh <email@hidden>
    • Re: scripting mail to select mailboxes
      • From: "David P. Baker" <email@hidden>
References: 
 >Re: scripting mail to select mailboxes (From: "David P. Baker" <email@hidden>)

  • Prev by Date: Re: birth date from Address Book
  • Next by Date: Re: "=" is equal to ...
  • Previous by thread: Re: scripting mail to select mailboxes
  • Next by thread: Re: scripting mail to select mailboxes
  • Index(es):
    • Date
    • Thread