I need to be able to get the currently highlighted message from the current message thread.
ie
- thread 1
- message 1
- message 2
- message 3 <- highlighted message
- message 4
I have tried:
tell application "Mail"
set messages to selected messages of first message viewer
set msg to first item of messages
end tell
but this just returns the thread of the currently selected message. It also does not include any outgoing messages in the thread.