Re: Person from email address
Re: Person from email address
- Subject: Re: Person from email address
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 06 Oct 2004 20:26:54 -0700
Title: Re: Person from email address
On 10/6/04 8:14 PM, "Irwin Poche" <email@hidden> wrote:
I was wondering if it's easy to get a person from the Address Book given their email address.
The obvious first try is obviously not going to work...
tell application "Address Book"
(people whose address is a1)
end tell
So is it possible to get
Firs of all, a 10-second perusal of the Address Book dictionary will show that
'email' not 'address' represents an email address, and also that it's an element, not a property: a person can have many emails. And it's the 'value' property of email which contains the actual email address.
So:
tell application "Address Book"
get every person where value of every email of it contains al
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:
This email sent to email@hidden