25 July 2007 @ 11:33Say it ain’t so!

You know the annoying “You’ve got mail!” that AOL says when, of course, you’ve (you, not me) got mail?

I was setting up Mail.app on a user’s new laptop one day, when she asked me if it would say “You’ve got mail!” when she gets new mail. Ugh. I told her no, but that I might be able to make it do that. So here is an Applescript that will save to file whatever text you enter, in whatever voice you choose.

Once you create the speech file, put it in ~/Library/Sounds , then in the Mail preferences set your “New mail” sound to this newly created file.

Open in Script Editor

property theText : ""
property theVoice : ""

display dialog ¬
"What do you want to speak?" default answer theText
set the theText to text returned of result
display dialog ¬
"What voice do you want to use?" default answer theVoice
set the theVoice to text returned of result

say theText using theVoice saving to ¬
(choose file name with prompt ¬
"Save audio as:" default name "speech.aiff")

Shop for Applescript books

Be Sociable, Share!

by | 2 comments | Tags: , , ,
Posted in applescript, email, speech | Link to this


  1. Iveta | 25 Jul 2007 @ 12:12 #

    It is a “comfort noise”. Its the beep-beep like your phone that says: ” I am important!”. Regardless of the fact that it is just for a fleeting moment. I guess the hilarious part to that would be that ultimately we are all “important” or “loved” by spam! Soon enough the light bulb will come on and many will realize that the once “You’ve got mail” doesn’t mean the same thing that it used to. What I would like is a specific tone to distinguish between the “junk” and actual important email that I want to read, so I can decide at that moment whether to pull myself away from something that may or may not be more important than what is in my Inbox… :-)

  2. Jon | 25 Jul 2007 @ 12:22 #

    That can be done. Here is an Applescript (not by me) that you can add to a Mail rule. There are a variety of ways you can use this. Apply it to all mail “if From Contains @”. Or apply it only to mail from a certain sender. Also move it up or down in your rules list — after Junk rules preferably.

Add a Comment

Show who you are with a Gravatar.


Sign up for PayPal and start accepting credit card payments instantly.

Staples Logo

Get fed!

rss icon subscribe to Geek stuff

rss icon Geek stuff in your inbox

Add the "Geek stuff" Google Gadget to your homepage

Add the "Daily Deals" Google Gadget to your homepage


Search Amazon

Search Amazon.com
Search Amazon.co.uk

Recent Forum Topics


    Web hosting by ICDSoft