This is pretty neat. I’m actually looking for a whole number and just used the area code as an example.
This seems to work and returns the first name instead of the ID of the record.
tell application "Contacts" name of first person whose (class of (first phone whose value contains "(805) 555-5555") is phone) end tell
This returns multiple people but not all of the people that have the number for reasons I don’t understand.
tell application "Contacts" name of people whose (class of (first phone whose value contains “(805) 555-5555"") is phone) end tell
Thanks, Bill Vlahos
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
|