Re: AB: Finding a contact from the phone number??
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.