Mail script not working right since Mavericks

I have a simple mail script that spoke incoming mail Sender Name. It worked fine until I upgraded to Mavericks. Now it just speaks the name of the message highlighted in the Inbox. I don’t know if I messed up somewhere or if something has changed in Mail since upgrading. I think Mail used to automatically ‘select’ the latest incoming mail. Any help would be appreciated. Here’s the script.

Thanks … BRL

using terms from application “Mail”
on perform mail action with messages theMsges
tell application “Mail”
repeat with AMessage in theMsges
set WhoSentIt to (extract name from sender of AMessage)
if (count of WhoSentIt) > 0 then say "New Mail from " & WhoSentIt volume 0.6
end repeat
end tell
end perform mail action with messages
end using terms from

using terms from application “Mail”
on run
tell application “Mail” to set sel to selection
tell me to perform mail action with messages (sel)
end run
end using terms from

Its working fine for me on Mavricks…

interesting. It says the sender of the selected mail on both my Mavericks iMacs. If I select an email and “apply rules” it works. I have mail 7.3 and when a new message comes in it is not automatically selected (highlighted) so the script speaks the name of the sender of whatever was the last selected (highlighted) email. I think my mail used to always highlight the last incoming message.
Thanks for replying. Does your Mail highlight the last incoming message?