URI coding for Address Book entry?
http for web pages, file for files, and Apple has a few of their own (itunes, etc)...
Does anyone know if there's a URI coding for an Address Book entry? I'd like to be able to embed a link in a document that when clicked will take you to that entry in Address Book.
Does anyone know if there's a URI coding for an Address Book entry? I'd like to be able to embed a link in a document that when clicked will take you to that entry in Address Book.
Comments
http://www.macosxhints.com/comment.p...der=&pid=18161
It is in the form:
addressbook://addressbook-id
or
addressbook://addressbook-id?edit
if you want to edit it. Getting the id of the addressbook record can be a bit intersteing. You either have to go through AppleEvents (such as AppleScript) to Addressbook.app like this:
tell application "Address Book"
get the id of the first person
end tell
or through the AddressBook.framework, the Coccoa header is at:
file:///System/Library/Frameworks/AddressBook.framework/Versions/A/Headers/
you would be looking to get the
kABUIDProperty
property. Some usefull documentation can be found on your system, and on http://developer.apple.com/ue/addressbook/.