Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Selecting a person in Address Book



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

As far as I can see, the Cocoa Address Book Objective-C Framework does not provide methods to do this. Ok, with the exception of -[ABPeoplePickerView editInAddressBook:], but I do want to achieve this without having a selection in an ABPeoplePickerView and I do not want to go to edit mode.

I thought AppleScript might be the way to go, and it almost is: you can set the selection to a person by its id. Unfortunately this only works if the person is a member of the currently selected group. And there seems to be no way to change the group selection. I already searched the applescript-users list to no avail.

Now I hope I simply overlooked something in the Address Book Objective-C Framework.

Thanks
Kai
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.