• 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: Setting properties in Address Book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting properties in Address Book


  • Subject: Re: Setting properties in Address Book
  • From: Paul Berkowitz <email@hidden>
  • Date: Sun, 10 Feb 2008 19:26:45 -0800
  • Thread-topic: Setting properties in Address Book

Title: Re: Setting properties in Address Book
On 2/10/08 4:20 PM, "Robert R. Horning" <email@hidden> wrote:

tell application "Address Book"
set foo to person "Michelle steiner"

Unless I include the entire name exactly as it already exists in the Address Book, including  any title, middle name, etc., the Script Editor returns:
"Address Book got an error: NSReceiverEvaluationScriptError: 4"
and 'person "Michelle steiner"'  is highlighted.

tell application "Address Book"
    set foo to first person whose last name is "Steiner" and first name is "Michelle"
    --get id of foo -- if you really need it
end tell

--
Paul Berkowitz
 _______________________________________________
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: 
 >Re: Setting properties in Address Book (From: "Robert R. Horning" <email@hidden>)

  • Prev by Date: Re: Bring a window to front
  • Next by Date: Re: do shell script vs. do script with command
  • Previous by thread: Re: Setting properties in Address Book
  • Next by thread: Re: Setting properties in Address Book
  • Index(es):
    • Date
    • Thread