• 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: Scripting a Find in Contacts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting a Find in Contacts


  • Subject: Re: Scripting a Find in Contacts
  • From: Bob Stern via AppleScript-Users <email@hidden>
  • Date: Tue, 14 Apr 2020 04:06:39 -0700

This seems to work in Mojave:

tell application "Contacts"
        set thePerson to the first person whose last name is “Smith"
        set aGroup to item 1 of groups of thePerson
        set selected of aGroup to true
        set the selection to thePerson
end tell

—Bob Stern
 _______________________________________________
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: 
 >Scripting a Find in Contacts (From: Christian Boyce via AppleScript-Users <email@hidden>)

  • Prev by Date: Scripting a Find in Contacts
  • Next by Date: How do I target Junk in Apple Mail?
  • Previous by thread: Scripting a Find in Contacts
  • Next by thread: How do I target Junk in Apple Mail?
  • Index(es):
    • Date
    • Thread