1 Reply Latest reply: May 20, 2006 6:30 PM by Dr. Smoke
get_jr Level 1 Level 1
When I do a spotlight search on names, spotlight brings up long alpha numeric codes instead of the actual names of my contacts. If I click on the code, I am taken to the address book record of the contact.


One code is:

Anyone have an idea what this means and how to fix this?


iMac 2 GHz Intel Core Duo   Mac OS X (10.4.6)   2 GB DDR2 SDRAM

iMac 2 GHz Intel Core Duo   Mac OS X (10.4.6)   2 GB DDR2 SDRAM
  • Dr. Smoke Level 9 Level 9
    Hi, get_jr. Welcome to the Discussions.

    I presume you mean you are doing a Find (Finder > Command-F) search for:

    Search location: Home (selected in top slice of Find window)
    Name: Contains: nameofperson

    If you do it that way, you get the results you indicated as it's finding the extracted Address Book metadata entry that Spotlight uses to index Address Book contacts. Every Address Book contact is saved twice:

    (1) Once in the Address Book database — which Spotlight cannot index.

    (2) Again in a separate XML property list file — that Spotlight can index — in your Home > Library > Caches > com.apple.AddressBook > Metadata folder. Each Address Book contact saved in this format is given a specially generated file name that can also be used for syncing these entries with iSync and .Mac.

    The reason you see the search results from Find is that the Name search criterion searches against the kMDItemDisplayName metadata attribute. For the text files of type (2) above, the value of the kMDItemDisplayName attribute is sent to the name of the person in the contact record. However, the search results show file names, as it is a Finder window, and hence displays the specially-generate file name, rather than the contact name, since that is the file name of the result.

    If you search using the Spotlight icon for nameofperson it should return the Address Book contact using the person's name.

    Good luck!

    Dr. Smoke
    Author: Troubleshooting Mac® OS X