A couple of Applescripts I’ve written to automate my workflow with Mail.app rely on the ability to select messages. With Mail.App 6 under Mountain Lion, this was possible with the following code:
tell application "Mail"
tell message viewer 1
set m to message 1
set selected messages to {m}
end tell
end tell
However, while the dictionary still shows “selected messages get/set list of message List of messages currently selected,” trying to run this with Mail 7 under Mavericks produces the error message “AppleEvent handler failed.”
Who can help?