Fix for Leopard Mail’s broken new mail alert

Aiff IconThe new mail alert sound in Mail.app was broken when Leopard was released last year. Three updates later, and it’s still broken.

[UPDATE: In deference to posters in the comments below, I should point out that not everyone experiences this problem. It only affects most/many/some/a few users. Like me.]

Fortunately, there is a work-around which you can use until Apple gets around to fixing the problem. It’s a bit fiddly, but not too forbidding.

First download this zip file from Hawk Wings which contains an applescript and the default “new mail” audio file.

Unzip it, and place the audio file in your ~/Library/Sounds folder (where “~” is shorthand for your user directory).

Then open up the script in place the script in Script Editor. You will see that all it does is execute a shell script — do shell script "afplay /Users/timbo/Library/Sounds/NewMail.aiff > /dev/null 2>&1 &". You will need to edit it to replace the name of my user directory with yours.

Then save it in your ~/Library/Scripts/Applications/Mail folder. If you don’t have such a folder, it’s worth creating one.

Now you need to create a rule in Mail.app that triggers the script whenever a new email arrives.

Open up the Rules pane in Mail’s Preferences:

Newmailalert Rule

Create a new rule. Call it something creative like “New Mail Alert Work-around” and fill out the rest as per the screenshot. I like to restrict it to people who are in my list of previous senders–it’s a quick and dirty way to rule out being alerted to the arrival of spam. Obviously, there are other ways to select conditions here which restrict when the alert will be triggered.

Also, in the “Perform the following action” field, you will need to select “Run AppleScript”, then navigate to ~/Library/Scripts/Applications/Mail and select the NewMailAlert.scpt that you saved there earlier.

All done. Send yourself a test email, and rejoice. Mail.app is talking to you again.

For extra spice you could use one of the hundreds of mail alert sounds listed at Email Gifs and Sounds (Or perhaps Scully is more your thing?) but have compassion on your work colleagues. That could get really annoying after a while.

[With thanks to the original posters in an Apple Discussion thread ] mail.app, leopard mail, apple mail, bugs, workarounds, tips, new mail alert, applescript

Similar Posts:

Tags: , , , , , , ,

28 Responses to “Fix for Leopard Mail’s broken new mail alert”

  1. Simon says:

    On my three macs the new mail sound was newer broken since I upgraded to leopard. Are you sure this isn’t a problem with your specific system? Maybe all the add-ons and hacks did interfere?

  2. Tim Gaden says:

    It’s always possible. Still, when I look at the Apple Discussions, I don’t think that I am alone:

    http://discussions.apple.com/search.jspa?objID=f1223&search=Go&q=new+mail+sound

    http://discussions.apple.com/search.jspa?threadID=&q=new+mail+alert&objID=f1223&dateRange=last90days&userID=&numResults=15&rankBy=10001

  3. Matt Schinckel says:

    I second that. I’ve never had an issue with broken sounds in Mail.app

  4. Greg says:

    What are you talking about? The new mail alert works just fine, and always has. If it is broken on your system it is likely because you broke it. Why would you expect an Apple Update to fix your mess?

  5. Tim Gaden says:

    I should also mention this thread, with its 129 posts and 2,696 views:

    http://discussions.apple.com/thread.jspa?threadID=1538808

  6. Chuck DeBerry says:

    For me, the issue wasn’t been limited to the sound but the icon that shows how many new mails in the Mail window and the Dock was also affected. Mine wouldn’t show anything!

    The only thing that fixed it was a new OS install on a new HD. An archive previous system folder install didn’t solve the problem.

  7. Stephen says:

    Thank you! I was initially so relieved when I saw that others were having the same problem regardless of the people who do not believe our situation. I appreciate this script and your thorough explanation as this was the first time ever using them.

  8. Melangell says:

    I have not had that problem but since Leopard, my 12″ 1.5 Ghz PB has lost its crunchy emptying trash sound.

  9. Mads says:

    I experienced the same problem. The solution for me was to uninstall Logitech Control Center; voila, sound was back. I’m never touching Logitech mouse software ever again.

  10. porter d says:

    omg thank you!!! Right after I got my g5 back from it’s dicidedly bad choice to cool itself directly with the water from its own pipes, I had this problem with mail….. It’s freakin’ nerve racking when the volume is up and a message comes in…. Kinda like a jet airliner meets and scratches a giant blackboard!! I’ll give this a shot and thanks again!!!

  11. Rick Curran says:

    Hi, chalk me up for someone who has never had a problem with the Mail.app sound since installing Leopard on at least two machines!

  12. pakkman781 says:

    Thanks for this, it’s been hugely annoying not having a new mail alert since October.

    I must say, it’s rather immature for the above posters to blame the problem on users when it’s obvious that we did not disable our new mail alert on purpose. It’s so nice of you guys to assume that we are somehow anti-Apple idiots because we are noting a small bug in their mail program that affects us.

  13. djp says:

    I was happy that when I spoke with Apple about this, they at least acknowledged that it was a problem they are working on. Doesn’t seem like it should be that difficult to fix, but time will tell. Thanks for the temp fix. I’ve been using Growl as a workaround ’til now. and to all you naysayers…meh.

  14. lar3ry says:

    There’s still that little problem that the “new mail” sound goes through the “Output” audio source, not the “System” audio source….

  15. Tim Gaden says:

    That sounds ugly.

    You will have to forgive me — I’m a journalist not a techie. Is it as bad as it sounds? Can anything be done?

  16. Hans Taktmann says:

    Me having the very same problem since 10.5.0, including 10.5.3. Otherwise I am a very happy Leopard-camper with no issues whatsoever; and I like Leopard.
    So I do think that it is a problem of Leopard Mail. VERY annoying, ridiculous that Apple hasnt been able to fix it, eight months or something after Leopard’s release.

    Thanks for letting people know that they are not alone out there w/out notification sounds, I searched twenty times Apple’s discussions (it’s true: SOMETIMES it does work, but there seems to be no pattern, like: Mail in the background, or something), and for providing the script.

  17. Hans Taktmann says:

    May I ask additionally: Would it be worth the effort to throw away com.apple.mail.plist (maybe more? and, accordingly, reconfigure all of your mail accounts, etc) in order to “reset” Mail? Has anyone tried?

    When I moved to Leopard from Tiger I did a clean install (though no zero’ing of the harddisk of the Macbook Pro), and then used Migration Assistant to move my data, including mail and Mail’s accounts. Worked well.

    I keep wondering if there is some unwanted heritage, or legacy of Tiger’s Mail remaining in my Leopard Mail (‘s prefs), causing the confusion regarding notification. Possible?

  18. Ryan says:

    Lots of people are having this problem. Check it out: http://gimmemyalert.blogspot.com/

  19. Alan says:

    Thanks so much. I had been looking for a solution for a long time but gave up. Then I decided today after updating to 10.5.4 to see if it was fixed. Nope, so I did a google search……and here I was directed.

    And to all the others who say that theirs works fine, great, however for many of us it is broke. It is broke on 2 of my MacBook Pros. 1 of which I bought with Leopard on it. The other I upgraded from Tiger and that is when it broke. Apple should have fixed it a while ago.

    Thanks again!!!

  20. fogarty says:

    Re Hans Taktmann: I have tried deleting the file that you mention several times, and I have not had any success. Still no new mail sound.

  21. Professa says:

    Thanks for posting. Even after a new OS install, I am still having this problem. I followed your steps and still not alert sound, I’m afraid. Any suggestions?

  22. Luke says:

    Thanks for this. New MB recently (came with 10.5.3) and low and behold… no mail notification. On a rare (like 1 in 1000) it might go off, but that was it.

  23. Bob says:

    @Greg said – “What are you talking about? The new mail alert works just fine, and always has. If it is broken on your system it is likely because you broke it. Why would you expect an Apple Update to fix your mess?”

    Greg, when I stuck my nuts in a vice and tightened it, it didn’t hurt me a bit. Therefore, it couldn’t hurt anyone. I recommend you try it.

  24. Rob says:

    I get the new mail sound, but its totally random and unrelated to whether I have new mail or not. Sometimes I think I have a “no new mail” sound. Is there supposed to be one of those?

    Anyway, its broken, and always has been on Leopard. After 4 revisions, I thought it might be fixed, but unfortunately not, luckily I can see the Dock icon and the number on it…

  25. Jeanne Warner says:

    I just spent an hour on the phone with an Apple Tech who 1. didn’t mention that this is a wide-spread problem and 2. had no idea how to fix it and 3. wasted an hour of both our time fooling around with stuff I had already tried. Here is the REAL rub – I am on a BRAND NEW MacBook Pro with Apple installed aps from the factory – the Neew Mail Sound never worked right out of the box from the first time it was turned on. Clearly, I didn’t mess it up!

  26. Sveenie says:

    Why do you use this applescript? You can select a “play sound” action for the rule in Mail. Or doesn’t it work as well?

  27. Lord Scrotum says:

    Thanks – that worked a treat! It’d been driving me mad.

  28. ia. says:

    No need for an AppleScript anymore. In the rules you can choose to play a sound now as one of the actions.

Leave a Reply