|
|
announce messaes with speech
You can do that with a modified version of the Applescript I posted:
Create a mail rule that screens for a specific sender. "joeblow@nowhere.com"
Then as the last action in the rule, attach a compiled Applescript like this:
on perform_mail_action(info) tell application "Mail" set selectedMessages to |SelectedMessages| of info set theRule to |Rule| of info repeat with eachMessage in selectedMessages set theSender to sender of eachMessage set theRuleName to name of theRule set theText to "You have a new message from" & theSender say theText end repeat end tell end perform_mail_actionI just tested the above. It works. When a message comes in that triggers the rule (in this example, from "Joe Blow"), your Mac will say: "You have a new message from Joe Blow " The script will add the name of any sender you set up a rule for. There is likely a way to make it not say the email address. That exercise is left to the reader. :)
announce messaes with speech
Hate to reply to my own message, but not sure how to edit. I just wanted to be clear: this script does NOT use "Say" or any other CLI application. The "say" in the script part of standard Applescript. No piping or terminal commands required. :) (Not that there is anything wrong with that...)
I just wanted to be clear.. it really is that simple. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|