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: Shuba and Karthik <email@hidden>
- Date: Mon, 26 Sep 2011 10:36:06 -0700
Jim,
The message ID I am referring to is extracted like this:
-------
tell account "My account (Via Gmail)"
tell mailbox "work"
--count messages
set theMsgs to every message
count theMsgs
set msgnr to 1
repeat with theMsg in theMsgs...
...set theSub to subject of theMsg
set theDate to date received of theMsg
set theSender to sender of theMsg
set IsFlagged to flagged status of theMsg
set IsRead to read status of theMsg
set theID to id of theMsg....
---
Does this help clarify?
Thanks,
Shuba
On Mon, Sep 26, 2011 at 10:11 AM, Jim Thorton
<email@hidden> wrote:
What exactly is the message ID? You mean, like 1240 (for 1240.emlx) and 8317 (8317.emlx) from INBOX.imapmbox or equivalent? If so, it's not going to be fun. And, if so, the version of Mail does matter.
Jim
On Sep 27, 2011, at 1:50 AM, Shuba and Karthik wrote:
Hi everyone,
I am writing a script to automate email handling using Apple mail. I have all steps before and after this figured out. If I can get the script to choose a message, I have the rest of the script which will act on that message in place. However, I am stumped at this point:
How do I *select* a message in the message viewer of Apple Mail given the message ID?
In case it makes a difference to your response, I am on Mac OS X 10.6.8.
Thank you,
Shuba
_______________________________________________
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
_______________________________________________
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