Skip navigation.
 
mlRe: Selecting a person in Address Book
FROM : Sean McBride
DATE : Wed Nov 28 20:25:31 2007

On 11/28/07 7:47 PM, Kai Brüning said:

>I'd like to tell the Address Book application to select a specific
>person (given by its id).


Look at the comments at the top of ABAddressBook.h:

// ================================================================
//      OpenURL support
// ================================================================
// An application can open the AddressBook app and select (and edit) a
specific
// person by using the -[NSWorkspace openURL:] API.
//
// To launch (or bring to front) the Address Book app and select a given
person
//
// NSString *urlString = [NSString stringWithFormat:@"addressbook://%@",
[aPerson uniqueId]];
// [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:urlString]];
//
// To launch (or bring to front) the Address Book app and edit a given person
//
// NSString *urlString = [NSString stringWithFormat:@"addressbook://%@?
edit", [aPerson uniqueId]];
// [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:urlString]];

--
____________________________________________________________
Sean McBride, B. Eng                <email_removed>
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

Related mailsAuthorDate
mlSelecting a person in Address Book Kai Brüning Nov 28, 19:47
mlRe: Selecting a person in Address Book Sean McBride Nov 28, 20:25
mlRe: Selecting a person in Address Book Kai Brüning Nov 28, 20:58