Mail Message list sort order for Applescript in ML
Hi All,
I recently upgraded from SL to ML. I'm having a few issues with an applescript i use to flag/unflag emails for later handling.
Basically, the script does the following:
- get the message list from one of the inboxes/smartboxes. These are ordered by time and grouped by thread.
- compare one message with the next one
- if some criterias are equal (thread ID, subject, ...) then the second email is unflagged
- repeat until end of list.
It was working fine in SL, as a result, i only had the first email of threads with a flag, so the others could be forgotten.
In ML, it looks like even though the emails are displayed in a specific order (date/thread), using
messages of first message viewer
does not fetch the messages in the same order, so matching cannot happen.
Is this the expected behavior in ML ? Is there anyway to have the list of messaged sorted as displayed ?
Thanks
jm
MacBook Pro, OS X Mountain Lion (10.8)