Problem with Address Book counting duplicates
Problem with Address Book counting duplicates
- Subject: Problem with Address Book counting duplicates
- From: David Crowe <email@hidden>
- Date: Mon, 26 Dec 2011 13:13:07 -0700
Because of synchronization of my Address Book between multiple computers I've had a problem with duplicate records multiplying. Easy enough to write a script to find the same name/organization and delete the duplicates.
However, the job of gathering up the duplicates does not seem to work. The following test code:
set theName to "David Crowe"
tell application "Address Book" set theList to every person whose name is theName
set nDuplicates to count theList end tell
display dialog theName & ": " & nDuplicates
Reports 8 records when there are actually 24 with my name. Most other contacts with duplicates report a count of 2 records when there are more like 8. I don't see anything strange in the records like extraneous spaces or punctuation.
Am I doing something wrong or is this problem reproducible. Using OSX 10.7.2. Address Book 6.1. If it is a problem perhaps there are workarounds.
- David Crowe |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden