• 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: Shuba and Karthik <email@hidden>
  • Date: Mon, 26 Sep 2011 13:29:15 -0700



On Mon, Sep 26, 2011 at 12:57 PM, Stan Cleveland <email@hidden> wrote:

So if I get the unique message id from the header in Apple's mail.app, how do I select the specific message in Apple mail to act upon?

Hi Shuba and all,

First off, please forgive my ignorance of Mail scripting. 

But in other apps that I've scripted (primarily Adobe and Microsoft apps and elements of the OS), a selection is a UI-related concept. (Of course, one can often script the creation or retrieval of a UI selection, but this would generally be for interacting with a human user, and not required by the script.)

When coding in AppleScript, one simply references the desired entity (page, file, word, range, etc.) and it is acted upon. Is Mail scripting different in that it REQUIRES a message to be selected within the UI before an operation can be performed upon it? Or can Shuba just address a message by its unique message ID with the desired command?

In other words, why not take the shortest path to the desired result? Making a selection (if it's not actually needed) is a detour.

Stan C.


Stan, fair point. I started out trying to do exactly what you suggest, trying to address a message by it's unique id. I couldn't get it to work. That's when I figured that perhaps selecting the message is the problem and have been trying to get that to work. It's entirely possible that I made a mistake in my first attempt, in which case this idea of trying to "select" a message is a detour. 

If that's the case, I would be grateful for any pointers in the right direction. 

Thanks,
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

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: Jim Thorton <email@hidden>)
 >Re: 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: Shuba and Karthik <email@hidden>)
 >Re: How to select a message in Apple mail, given mail ID? (From: Stan Cleveland <email@hidden>)

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