what is the most efficient way to copy all (or most) of contact info of one person to another in Address book using applescript?
For example, to copy the address I tried
tell application "address book"
set address of person "X" to address of person "Y"
end tell
this runs with no errors but produces no result. same with phones. i can go through each individual address field but it’s a major pain. is there a quicker way?
let me elaborate. I need to do it to a large number of address book entries for people working for the same company. I wanted to use the address and the phone of the company and add it to all of those AB entries.
The syntax set address to. can’t work, because an address is an element and elements are not settable.
It might work to move a single address to an insertion point like .after end of addresses,
but unfortunately every application behaves different