AppleScript to handle linked contact cards in Contacts (Address Book)?

Hi,

I’d like to run a script to remove fields from a person’s iCloud card (Job Description, Department, Company, Work Address, …) if they exist in a LinkedIn card which is linked to the same person.

I don’t know where to start, as I’m not sure a person id refers to all the cards (seems that it corresponds to one card only). I haven’t found anything about this in the forum. Would anyone have information / ideas about how to do this?

Many thanks.