6 Replies Latest reply: Oct 24, 2012 8:26 AM by disguise
scottnl Level 1 Level 1 (0 points)

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?

  • 1. Re: Going from Email contact to Address Book directly
    disguise Level 2 Level 2 (345 points)

    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

  • 2. Re: Going from Email contact to Address Book directly
    scottnl Level 1 Level 1 (0 points)

    Thank you for your quick response. I know that I can do what you are saying, but it requires that you go thru a 2-step process to get to the Address Book. In the previous version, you would mouse over the contact name, and it would give you the option to Open with Address Book without requiring you to first Show Contact Card. I wanted to know if there is any way to go directly to the Address Book like it used to work without going thru the Show Contact Card.

  • 3. Re: Going from Email contact to Address Book directly
    disguise Level 2 Level 2 (345 points)

    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

  • 4. Re: Going from Email contact to Address Book directly
    disguise Level 2 Level 2 (345 points)

    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.

  • 5. Re: Going from Email contact to Address Book directly
    scottnl Level 1 Level 1 (0 points)

    I did this, and when I clicked on Run, it just ran. Nothing happened, and it kept running.

     

    I then tried to save it, and I assume I should save it in the Mail Scripts inside of Scripts, but it would not let me save it.

  • 6. Re: Going from Email contact to Address Book directly
    disguise Level 2 Level 2 (345 points)

    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