• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problem with Address Book counting duplicates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Problem with Address Book counting duplicates
      • From: Ron Hunsinger <email@hidden>
  • Prev by Date: Re: Editing on Snow Leopard
  • Next by Date: Re: Editing on Snow Leopard
  • Previous by thread: Re: Editing on Snow Leopard
  • Next by thread: Re: Problem with Address Book counting duplicates
  • Index(es):
    • Date
    • Thread