Skip navigation

Going from Email contact to Address Book directly

242 Views 6 Replies Latest reply: Oct 24, 2012 8:26 AM by disguise RSS
scottnl Calculating status...
Currently Being Moderated
Oct 23, 2012 9:16 AM

When you click on the contact who your email is from, it now gives the option to show the contact, but not to open the contact in Address Book directly, as previous versions did. Is there a way to go straight to the contact in Address Book?

  • disguise Level 2 Level 2 (330 points)
    Currently Being Moderated
    Oct 23, 2012 11:02 AM (in response to scottnl)

    In Mail 5.3

     

    Mouse over the contact name in the email "From" field

     

    Right-click on the name -> Show Contact Card -> Open With Address Book

  • disguise Level 2 Level 2 (330 points)
    Currently Being Moderated
    Oct 23, 2012 2:38 PM (in response to scottnl)

    Here's an AppleScript you can run. (This script will locate the Address Book entry of the selected email message in the Apple Mail application based on the email address of the sender. If no entry is found in the Address Book, then an error dialog is displayed.)

     

    Utilities -> AppleScript

     

    Copy and Paste this script into the AppleScript edit window, Press "Compile" to verify syntax, then press "Run"

     

    tell application "Mail"

                 set mySelections to selection

                 set theMessage to item 1 of mySelections

                 set theAddress to (extract address from sender of theMessage) as string

     

                 set isFound to false

          tell application "Address Book"

              repeat with aPerson in people

                   if (the value of aPerson's email as string) is theAddress then

                        set selection to aPerson

                        set isFound to true

                        exit repeat

                   end if

              end repeat

         end tell

     

                 if (isFound is true) then

                                 tell application "Address Book"

                   activate

                                 end tell

                 else

                                display dialog "No entry found in address book" with title "Error" with icon caution buttons {"Close"} default button "Close"

                 end if

    end tell

  • disguise Level 2 Level 2 (330 points)
    Currently Being Moderated
    Oct 24, 2012 7:27 AM (in response to scottnl)

    Once you've tweeked the script to your liking you can incorporate its' execution onto your desktop - then you're back to a single-click feature just like before (the way it used to be prior to the upgrade). Do the following:

     

    1) Utilities -> AppleScript Editor

     

        Preferences -> General -> Show Script menu in menu bar

     

        I've also checked "Show Computer scripts" and "Show application scripts at bottom" but these are to your liking.

     

    2) Save the above AppleScript to a file in ~/Library/Scripts

     

    Scripts in this folder are automatically visible from the AppleScripts menu now in your menu bar.

  • disguise Level 2 Level 2 (330 points)
    Currently Being Moderated
    Oct 24, 2012 8:26 AM (in response to scottnl)

    Hmmm, I just copied and pasted the above script into Utilities -> AppleScript Editor, I pressed "Compile" and everything looks fine. I pressed "Run" and everything worked like a charm.

     

    My version of Address Book is 6.1.3

     

    My Version of Mail is 5.3

     

    My Version of Lion is 10.7.5

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.