• 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: Person from email address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Person from email address
      • From: Michelle Steiner <email@hidden>
References: 
 >Person from email address (From: Irwin Poche <email@hidden>)

  • Prev by Date: Person from email address
  • Next by Date: Re: Person from email address
  • Previous by thread: Person from email address
  • Next by thread: Re: Person from email address
  • Index(es):
    • Date
    • Thread