• 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: Opening a message in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening a message in Mail


  • Subject: Re: Opening a message in Mail
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 22 Apr 2009 09:51:44 -0700

On Apr 22, 2009, at 9:37 AM, Christopher Stone wrote:

Why the dickens doesn't this work?

tell application "Mail"
set m to message 1 of message viewer 1
open m
end tell

It's a bug.  It works only if a mailbox/folder is selected in the GUI, and will then return message 1 of the selected mailbox/folder.  (If more than one folder is selected, it will return messages only from the first of those selected folders.)

-- Michelle

-- 
If you're not going somewhere, you're not getting anywhere.

 _______________________________________________
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

References: 
 >Opening a message in Mail (From: Christopher Stone <email@hidden>)

  • Prev by Date: Opening a message in Mail
  • Next by Date: Re: Opening a message in Mail
  • Previous by thread: Opening a message in Mail
  • Next by thread: Re: Opening a message in Mail
  • Index(es):
    • Date
    • Thread