• 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: AB: Finding a contact from the phone number??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AB: Finding a contact from the phone number??


  • Subject: Re: AB: Finding a contact from the phone number??
  • From: Michelle Steiner <email@hidden>
  • Date: Sun, 4 May 2003 19:05:17 -0700

On Sunday, May 4, 2003, at 04:15 PM, Jakob Peterhdnsel wrote:

and it works just fine, but this will not work:

set foundPerson to (first person where some phone's value is "+45 4016 38 06")
or
set foundPerson to (first person where some phone's value ends with "38 06")

Is this a bug or a 'missing feature'???

"some person" means a person at random. "Some phone value" means a phone value at random.

Also "phone's value" is a list.

tell application "Address Book"
phone's value of people whose first name is "Michelle"
end tell

--> {"(480) 219-nnnn", "(480) 250-nnnn"}

tell application "Address Book"
some item of ((phone's value of people whose first name is "Michelle") as list)
end tell

--> one or the other of the above numbers, at random.

Hope you can figure out how to do it from this information.

--Michelle

--
You can not change the world without perforce changing yourself.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: AB: Finding a contact from the phone number??
      • From: Jakob Peterhänsel <email@hidden>
References: 
 >AB: Finding a contact from the phone number?? (From: Jakob Peterhänsel <email@hidden>)

  • Prev by Date: Re: AB: Finding a contact from the phone number??
  • Next by Date: Re: AB: Finding a contact from the phone number??
  • Previous by thread: Re: AB: Finding a contact from the phone number??
  • Next by thread: Re: AB: Finding a contact from the phone number??
  • Index(es):
    • Date
    • Thread