On Sep 26, 2011, at 11:07 AM, Shuba and Karthik 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. -- "I don't have a solution, but I certainly admire the problem." -- Ashleigh Brilliant
|