Hi all,
I somehow managed to back my sorry self into a corner and have no idea how to get out of it.
I created a somewhat larger script than initially anticipated which deals with clients, opponents, courts, deadlines, appointments, invoices and so on (its for my wife since she is a lawyer).
Everything is working perfectly, until I discovered, far too late, that the id property of the Address Book Suite is not quite what it seems. It says there:
id (text, r/o) : unique and persistent identifier for this record.
Well, if somebody is looking into the documentation of the Contacts framework it says something similar, but somehow more precise:
identifier
A value that uniquely identifies a contact on the device.
Needless to say, the part ‘on the device’ is where I’m in deep trouble. I’ve chosen to save all the relevant data within Devonthink Pro (that is, just id’s of the contacts in plist files) which is synchronized to her Mac. Unfortunately, since every device creates it’s own id, all the records I prepare on my Mac are useless on hers. And vice versa.
Long story, sorry for that.
I noticed, however, that, upon exporting vcards from the contact, every contacts gets an UID which doesn’t change. Unfortunately, I can’t get it from Address Book Suite.
Now, should I rewrite to store just the names in the files, should I try to create my own vcard reading & writing mechanism (uh-uh), rewrite everything from scratch using Swift or whatever and just include scripts for storing in Devonthink and generating letters in Pages, or does anybody know how to get a contact’s UID?
Any help appreciated…