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