Applescript fails to select messages in Mail.app 7 under Mavericks

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?

Nothing useful here, sorry. A bunch of core “select first message in inbox whose subject contains…” stuff went away in Mavericks. :frowning:

Thank you, PPayne. Meanwhile, I have discovered that the problem was caused by a pre-release version of the add-on “MailTags 4” (Indev) that I had installed. I contacted Indev and they sent me another pre-release version, which is working fine. :slight_smile: