Speak Sender Name Only AppleScript in Mail No Longer Working In Mountain Lion

Hi all, the title pretty much says it all.
I have a very simple AppleScript that I use as a rule in Apple Mail everytime new email comes in.
This AppleScript will speak only the sender's name. That's all I want it to say.
I there are two emails, it will say, "Mail From John Smith" followed closely by "Mail From Johnny Appletree", etc.
This works great in Lion as a Mail rule.
I have properly placed this AppleScript in the correct path for Mail scripts.
It's located in:
(user name)/Library/Application Scripts/com.apple.mail
I've popped in the sample script provided by Apple into this same path that speaks the total number of selected emails, the name and the subject, etc. That works fine, so I'm positive the path is correct. But that script says a bunch of items I don't need. I just need a simple script and I'm guessing somehow the conversion from Lion to Mountain Lion doesn't work for some reason with this script.
Anyone know how to modify this supposedly simple script to make it work in Mountain Lion?
Any help is most appreciated, thanks!
Here is the script I had been using in Lion as a Mail rule without any issues before Mountain Lion:
on perform_mail_action(info)
-- see if iTunes is playing
          set itunes_playing to false
          tell application "System Events"
                    if (get name of every process) does not contain "iTunes" then
                              set itunes_playing to false
                    else
                              tell application "iTunes"
                                        if player state is playing then set itunes_playing to true
                              end tell
                    end if
          end tell
-- pause iTunes if needed
          if itunes_playing is true then tell application "iTunes" to pause
          tell application "Mail"
                    set the_messages to |SelectedMessages| of info
                    repeat with a_message in the_messages
                              set the_sender to extract name from sender of a_message
                              if (junk mail status of a_message) is not true then
                                        say "Mail from " & the_sender
                              end if
                    end repeat
          end tell
-- resume iTunes if it was playing before
          if itunes_playing is true then tell application "iTunes" to play
end perform_mail_action

Hi,
This script should work, try it :
using terms from application "Mail"
      on perform mail action with messages theselectedMessages
            tell application "iTunes" -- this doesn launch Tunes if iTunes is not running
                  set itunes_playing to running and player state is playing -- see if iTunes is playing
                  if itunes_playing then pause -- pause iTunes if needed
            end tell
            tell application "Mail"
                  repeat with a_message in theselectedMessages
                        set the_sender to extract name from sender of a_message
                        if (junk mail status of a_message) is not true then
                              tell me to say "Mail from " & the_sender
                        end if
                  end repeat
            end tell
            -- resume iTunes if it was playing before
            if itunes_playing then tell application "iTunes" to play
      end perform mail action with messages
end using terms from

Similar Messages

  • Hi! is it possible that Logic X has upgrades that work only with mavericks and does t work in mountain lion....since in my macbook pro with mavericks i have new views of the equalizer, etc and in my mac pro with mountain lion it still the old view...

    Hi! is it possible that Logic X has upgrades that work only with mavericks and does t work in mountain lion....since in my macbook pro with mavericks i have new views of the equalizer, etc and in my mac pro with mountain lion it still the old view...

    Any OS version of 10.8.4 or later has all features that are not OS depended. The plugins are one example. You probably haven't updated all versions of Logic Pro X to the latest one.

  • Mail doesn't work in Mountain Lion

    After upgrading Lion to Mountaun Lion, first start of Mail is fail. It porpose me updaiting the Mail database and ask few minutes for that, but still is about 4 or 5 hours with internet working and do nothing. I shut down it, and start it a lot of time and restart my Mac, but problem is not solve. Please, help, how I can come back it alive

    Working without any backup is EXTREMELY risky and extremely foolish, there are no excuses. All you need is an external HD and you can at least use Time Machine. Good luck however I think you will need to start over, unfortunately I believe you are also about to learn a difficult lesson on why backing up is crucial.
    Good luck though.

  • I am having issues sending email from the apple mail application. reciving works but somtimes it takes an hour to send if at all. any thoughts?

    I administrate an office and we switched to macs very recently. Now the problem I am having is one of the workstations will send emails but very slowly and it sometimes it doesn't send at all through apple mail. It work fine through gmail client but this client needs to use apple mail and it just won't send it will recieve messages flawlessly. Any ideas? This is the only computer having problems with this!

    Hi Cdarnell,
    Here is an article with some good troubleshooting steps for issues sending mail through OS X Mail app:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/TS3276
    Have a good one!
    - Ari

  • TS3276 On iMac with Mountain Lion I am now unable to send but can receive e-mails. Previously worked fine. I use an iCloud acct and Safari browser.  Internet connection is wireless via cable modem.  Any suggestion?  Thanks.

    On iMac with Mountain Lion I am now unable to send but can receive e-mails. Previously worked fine. I use an iCloud acct and Safari browser.  Internet connection is wireless via cable modem.  Any suggestion?  Thanks.

    Hi tarifiq and welcome to the BlackBerry Support Community Forums!
    Can you send me a private message with your PIN so I can check this out for you?
    Thanks
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Transfer Mail Rules from Leopard to Mountain Lion

    I have succesfully moved my mail, mailboxes and folders from my old Power PC to my new iMac by moving my Library>Mail folder from one to the other.
    The only thing that didn't carry over were my Mail Rules.
    Is there some other file I'm missing?
    Thanks,
    - Peter

    Mail rules are stored in your user Library/Mail/V2/Mail Data/SyncedRules.plist or at least they are on my computer.
    To make your user library visible:
    Hold down the option key while using the Finder "Go To Folder" command. Enter ~/Library. If you prefer to make your user library permanently visible, use the Terminal command found below. It does work with Mountain Lion.
    http://osxdaily.com/2011/07/22/access-user-library-folder-in-os-x-lion/ 
    You might want to bookmark the command. I had to use it again after I installed 10.8.2. I have also been informed that if you drag the user library to Finder it will remain visible.

  • After upgrading to iOS6 my e-mail no longer works. How do I get it back?

    I upgraded to iOS6 and now my e-mail no longer works. What do I do to get it back? It is stuck. I have restarted the iPad multiple times, checked my settings to no avail. I know the accouunt still works as I can access it on my PC. Help!! PLease

    The button sounds like it sends a video to vodpod.com but that doesn't match what I see for the extension. The other two extensions came up with a search for vodpod but don't specifically mention vodpod.
    * Flash Video Downloader - Youtube Downloader :: Add-ons for Firefox<br>https://addons.mozilla.org/en-US/firefox/addon/flash-video-downloader-youtube/
    * Easy YouTube Video Downloader :: Add-ons for Firefox<br>https://addons.mozilla.org/en-US/firefox/addon/easy-youtube-video-downl-10137/
    * Share Video :: Add-ons for Firefox<br>https://addons.mozilla.org/en-US/firefox/addon/share-video/

  • HT3748 since upgrading to Mountain Lion, my Mac Mail no longer works well w/exchange email; so, I have had to switch back to outlook. Now, how can I use outlook for mac's calendar and contacts with icloud?

    Since uprgading to Mountain Lion, my mac mail no longer works with my exchange email properly. I finally gave up and moved back to outlook for mac, but now my new issue is using outlook calendar and contacts with icloud; possible?

    Sorry but I'm really not to sure what I have. I'm not good with knowing my computer model. All I know is that its a MacBook running with Leopard. I got my computer last year so I suppose its fairly new. Is there a place on my computer where I can check to see what it is (sorry to be so dumb with my own mac)
    And everything else works fine. I love Safari. It's just my mail that doesn't work. Here's the message that pop up several times.
    "The MobileMe IMAP server “mail.mac.com” rejected the password for user “akcastaldo”
    Please re-enter your password, or cancel."
    The only problem here is, even though I enter my password it doesn't do anything. It makes that message go away for about 3-5 mins. After that it pops right back up. And I can't even go into my preference and change my email password. So I don't know what to do.

  • HT1338 I just uploaded an update to Mountain Lion today mail no longer works

    I just uploaded an update to Mountain Lion today mail no longer works.

    After I ran theupdate yesterday I got a message that the update did not complete. When I tried to run mail I got a error message that mail could not run. When I rebooted and tried mail again I got the same error. I tried to load the last mail update from the apple store, but could not run it because it was unsigned.

  • Is it possible to update to the latest Mail version without updating OSX Mountain Lion, Current Mail version is 6.6

    Is it possible to update to the latest Mail version without updating OSX Mountain Lion, Current Mail version is 6.6?

    Thank you for your prompt reply.
    Just wanna confirm again, your are sure about it?

  • I bought my macbookpro in may 2007, will it work with Mountain Lion? Hardware Overview:    Model Name:     MacBook Pro   Model Identifier:     MacBookPro2,1   Processor Name:     Intel Core 2 Duo   Processor Speed:     2.33 GHz   Serial Number (system):  

    I bought my macbookpro in may 2007, will it work with Mountain Lion?    Model Name:     MacBook Pro   Model Identifier:     MacBookPro2,1   Processor Name:     Intel Core 2 Duo   Processor Speed:     2.33 GHz   Number of Processors:     1   Total Number of Cores:     2   L2 Cache:     4 MB   Memory:     3 GB   Bus Speed:     667 MHz   Serial Number (system):     W872******

    Apple states that (of the MBP lines) it has to be from Mid/Late 2007 or later.  yours seems to be right on the line.
    Apple says
    If you are running Lion, you can find out if your current Mac qualifies by clicking the Apple icon at the top left of your screen, choosing About This Mac, then clicking More Info.
    you must also have the latest version of Snow Leapord or Lion

  • Why has my Safari and MAIL slowed after upgrading to Mountain Lion on my MacBookPro ?

    Why has my Safari and MAIL slowed after upgrading to Mountain Lion ? I have mid-2009 MBPro and have very fast Internet access router.

    I have noticed the same thing on my MAC.  Mail has become very "clunky"- Before Mountain Lion, whenever I clicked on a msg or a function (delete), it would respond immediately.  With Mountain Lion there is an unacceptable hesitation.  What is going on with this latest update?

  • L'option "ajouter à iPhoto" dans mail, ne fonctionne plus avec mountain lion.

    l'option "ajouter à iPhoto" dans mail, ne fonctionne plus avec mountain lion.

    http://support.apple.com/kb/TS4435

  • Applescript to create mail is not working correct in Lion

    Hi all
    When I run this applescript in Lion to send a mail with Apple Mail
    tell application "Mail"
              set theNewMessage to make new outgoing message with properties {subject:"Subject text", content:"Content text", visible:false}
              tell theNewMessage
      make new to recipient at end of to recipients with properties {address:"[email protected]"}
      send
              end tell
    end tell
    It send the mail just fine
    Go to Mail and you see it in send items
    Now try to close Mail with cmd q and you notice that the mail popup ready to send a second time.
    If you hit the send button it will be mailed again and when you use cmd q now it will close Mail.
    As far as I know this will not happen in Snow
    If it is possible I like to know I I am correct that it is working OK in Snow and that Lion is the problem
    Thanks for testing
    Regards, Ron de Bruin

    I think setting visible always to true will be the solution, but I can't test in Snow anymore.

  • My Mac Mail no longer works (does not receive or send mail)

    I have had my MacBook for maybe a year now, and I don't really use the mail often. The last time I was able to send and receive mail was back in October. Now it will no longer work.. I get a pop up that's always asking me to put in my mail password, but nothing happens. I even tried going to preference to change my password and it won't allow me.
    When I try to send mail, the little paper plane icon is not clickable. Nothing happens. The only thing I can do is exit out of the message or save the draft. And I can not seem to get mail at all from anyone. I haven't touched any setting either, so I don't understand why it no longer works. My bank can no longer send me emails nor can my friends send me emails anymore.
    Does anyone know how I can possibly fix this problem and get my email up and running again. Thanks in advance for all the advice.

    Sorry but I'm really not to sure what I have. I'm not good with knowing my computer model. All I know is that its a MacBook running with Leopard. I got my computer last year so I suppose its fairly new. Is there a place on my computer where I can check to see what it is (sorry to be so dumb with my own mac)
    And everything else works fine. I love Safari. It's just my mail that doesn't work. Here's the message that pop up several times.
    "The MobileMe IMAP server “mail.mac.com” rejected the password for user “akcastaldo”
    Please re-enter your password, or cancel."
    The only problem here is, even though I enter my password it doesn't do anything. It makes that message go away for about 3-5 mins. After that it pops right back up. And I can't even go into my preference and change my email password. So I don't know what to do.

Maybe you are looking for

  • How do I transfer data from external hard drive to new computer

    We had been using a PC with XP that had four different users and ITune libraries.   It was attacked by viruses that got deep in op system and could not be fixed.   We purchased a new PC with Windows 8.   I had transfered the itune files by copying th

  • Error messages after i have logged on

    everytime i log on and try  to add more credit or a pack i get a message saying sorry there is a problem getting your credit details and pack details this has been going on for months

  • Error in Prepare to install minimal configuration phase.

    Hi experts,                 AM installing CRM 7.0 SR1. i finished installing ABAP stack. now installing JAVA stack on the same database (MCOD) Now in the Phase : Prepare to install minimal configuration, its showing error : "Java process dispatcher o

  • Special GL Postings through Cash Journal

    Hello All, We are implementing EHP 4 SAP ERP 6.0 NW 7.01 in Vietnam. We have found that we can not post Special GL transactions through Cash Journal. It is vey much necessary for the client to post Employee advances and loans through Cash journal. Th

  • Shared Photostreams in Mac OS X Mountain Lion?

    Apple says, that we wil be able to receive shared Photo streams form Devices that run iOS 6, but will we be able to actually stream to another's photo stream the pics from Mountain Lion? How can we fetch the pics on the net?