-- Speak Sender Name in Mail. -- Portions of this are probably copyright Apple -- since I cobbled this together out of code that I found. on perform_mail_action(info) tell application "Mail" set theMessages to |SelectedMessages| of info repeat with thisMessage in theMessages set AppleScript's text item delimiters to {""} set thisSender to sender of thisMessage as string set brkpos to offset of "<" in thisSender if (brkpos is greater than 1) then set thisSender to (text items 1 through (brkpos - 1)) of thisSender as string if thisSender contains "\"" then set AppleScript's text item delimiters to {"\""} set thisSender to text item 2 of thisSender as string end if else if (brkpos is equal to 1) then set thisSender to (text items 2 through -1) of thisSender as string end if set AppleScript's text item delimiters to {"@"} set thisSender to text item 1 of thisSender as string end if say "[[volm 0.3]] Mail from " & thisSender end repeat end tell end perform_mail_action