• 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: How to select a message in Apple mail, given mail ID?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to select a message in Apple mail, given mail ID?


  • Subject: Re: How to select a message in Apple mail, given mail ID?
  • From: Christopher Stone <email@hidden>
  • Date: Thu, 29 Sep 2011 02:03:33 -0500

On Sep 29, 2011, at 00:37, Shuba and Karthik wrote:

    repeat with theMsg in unreadMsgs

      set theID to id of theMsg

      set selected messages to {first message whose id is theID}

______________________________________________________________________

Hey Shuba,

First off 'front message viewer' is not safe if you have more than one open.

Why specifically are you taking the effort to select the message?

There is no need to do that to process it, and it slows things down.

tell application "Mail"
tell (some message viewer whose index is 1)
set selected mailboxes to {mailbox "INBOX" of account "geode" of application "Mail"}
set msgList to messages whose read status is false
repeat with theMsg in msgList
set sub to theMsg's subject
end repeat
end tell
end tell

--
Best Regards,
Chris

 _______________________________________________
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: How to select a message in Apple mail, given mail ID?
      • From: Michelle Steiner <email@hidden>
References: 
 >How to select a message in Apple mail, given mail ID? (From: Shuba and Karthik <email@hidden>)
 >Re: How to select a message in Apple mail, given mail ID? (From: Ron Hunsinger <email@hidden>)
 >Re: How to select a message in Apple mail, given mail ID? (From: Shuba and Karthik <email@hidden>)

  • Prev by Date: Re: How to select a message in Apple mail, given mail ID?
  • Next by Date: Re: What do you think about Apple and Lion? - Just a survey
  • Previous by thread: Re: How to select a message in Apple mail, given mail ID?
  • Next by thread: Re: How to select a message in Apple mail, given mail ID?
  • Index(es):
    • Date
    • Thread