Re: How to select a message in Apple mail, given mail ID?
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