David,
did you find a solution for this problem?
When I looked at my address book, it contains several "folders" (?), among them "local" ("Lokal" in German) and "All contacts" (guessed name, "Alle Kontakte" in German), and some directories ("Verzeichnisse"), probably related to active directories and LDAP services.
I realised that I had several duplicate names, but only in "All contacts", while your AppleScript will only list the names in "local", which were counted correctly, as far as I see. I tested this also with "first name" and "last name" instead of "name" to see if typos might interfere (following Ron's suggestion).
I didn't find a way to list the addresses in any other folder than "local", in particular not in "All contacts". |