• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Showing a person in Address Book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Showing a person in Address Book


  • Subject: Showing a person in Address Book
  • From: Gideon King <email@hidden>
  • Date: Thu, 29 Jul 2010 12:36:05 +1000

Hi all, I would like to show a person in the Address Book application. I know the ID of the person, and so far I can show Address Book with the person selected, but *only* if the person is in the group the user currently has selected in Address Book.

Here's my code:

tell application "Address Book" to activate
tell application "Address Book"
set thePerson to first person whose id is "3ED8E6A0-5AF3-4BE5-8713-C4D82C9A7174:ABPerson"
set selection to thePerson
end tell

How do I get Address Book to select the "All Contacts" group first, or switch to the card only view so that I am sure it will be able to show the person? Or is there another way to accomplish this?

Note: this is part of a commercial application, and as such I don't want to have to get people to turn on UI scripting, just to use this feature.

Thanks

Gideon

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Showing a person in Address Book
      • From: "email@hidden" <email@hidden>
  • Prev by Date: Re: Converting Pictures via AppleScript?
  • Next by Date: Re: Showing a person in Address Book
  • Previous by thread: Re: Public Domain Library Lister
  • Next by thread: Re: Showing a person in Address Book
  • Index(es):
    • Date
    • Thread