Saturday, 14 September 2013

An Applescript to remove duplicate fields within the same contact card

An Applescript to remove duplicate fields within the same contact card

I noticed that I have many (hundreds) duplicate field names and values in
my OS X 10.8.5 Address Book. "Field names and values" are probably not the
right words, but what I mean is, that I have many contact cards that seem
to have identical fields like this:

The problem is not confined to social profiles. Also emails, addresses,
phones, (and maybe more) suffer from duplication.
I got introduced to AppleScript yesterday, and although I do get it a
little (can run them, can play around a bit with existing scripts, know
about save :)), this is still beyond my capabilities:
I would be really helped by such an AppleScript that removes duplicate
fields per card if they have the same type(?) and the same label(?) and
the same value(?). (But keeping one instance.)
I can imagine that addresses (with street, postal code, etc), might be
asking too much. But, non-composite "fields" would already clean up my
address book significantly.
Apologies for surely not getting the technical terms right.

No comments:

Post a Comment