• 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
Re: Showing a person in Address Book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Showing a person in Address Book


  • Subject: Re: Showing a person in Address Book
  • From: Gideon King <email@hidden>
  • Date: Thu, 29 Jul 2010 14:50:31 +1000

Excellent, works brilliantly, thanks. 

On 29/07/2010, at 2:45 PM, email@hidden wrote:

Gideon, try this:

set myId to  "3ED8E6A0-5AF3-4BE5-8713-C4D82C9A7174:ABPerson"

tell application "Address Book"
set selection to my card
  set thePerson to first person whose id is myId
set selection to thePerson
end tell
tell application "Address Book" to activate


'my card' is a property of the application, and selecting it, makes "All Contacts" the active group. It does flash the wrong card for a second, so you may want to move the activate command to the end of the script.


 _______________________________________________
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

References: 
 >Showing a person in Address Book (From: Gideon King <email@hidden>)
 >Re: Showing a person in Address Book (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Showing a person in Address Book
  • Next by Date: Re: Converting Pictures via AppleScript?
  • Previous by thread: Re: Showing a person in Address Book
  • Next by thread: TextWrangler scripting
  • Index(es):
    • Date
    • Thread