• 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
Failed attempt to select a particular mailbox in Mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Failed attempt to select a particular mailbox in Mail.app


  • Subject: Failed attempt to select a particular mailbox in Mail.app
  • From: Jim Krenz <email@hidden>
  • Date: Thu, 28 May 2009 13:57:05 -0700

Hello all,

In my continuing attempts to learn AppleScript, I am working on a simple script that will go to/select a particular mailbox in Mail.app. Thus far, I have been hitting my head against the wall. Here is where I am at (which returns a error - AppleEvent handler failed):

tell application "Mail"
set message viewer 1 to {mailbox "INBOX" of account "JK@org"}
end tell

I'm sure I am missing something simple, due to my lack of knowledge/experience. Is set what I want to use, or am I completely off base?

Any pointers or suggestions are appreciated.

Jim
 _______________________________________________
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: Failed attempt to select a particular mailbox in Mail.app
      • From: Luther Fuller <email@hidden>
  • Prev by Date: Re: In Design - Copy/Paste image without original file
  • Next by Date: Re: Scripting for multiple InDesign versions
  • Previous by thread: RE: In Design - Copy/Paste image without original file
  • Next by thread: Re: Failed attempt to select a particular mailbox in Mail.app
  • Index(es):
    • Date
    • Thread