I really appreciate your pointing me to the Address Book programming information at Apple Dev Connection. However, this is not yet what I'm looking for.
What I need to be able to do as a normal user, i.e. without recourse to Objective C or otherwise programming the Address Book:
- Add a field with a name of my choosing (e.g. "myfield") to the fields available in Address Book. (This would be the equivalent, in Objective C, of adding a property of my own to people in the Address Book.)
- Specify for Address Book that myfield has no non-null duplicates -- in other words, that it is a unique identifier when not null.
- I could then import hundreds of contacts from a sql database, in each case setting myfield equal to a unique identified maintained in the sql database.
- Address Book would henceforth, i.e. in future imports, use myfield, when non-null, to match imported contacts with existing contacts.
- The time-stamp of the most recent change should determine, for a particular contact, which information prevails, that already in the Address Book or that in the import file.
- From here, it would be easy to write scripts to handle the bidirectional importing/exporting between the Address Book and the sql database.
Can this be done?