• 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: Address Book Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Address Book Question


  • Subject: Re: Address Book Question
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 17 Feb 2004 12:33:17 -0700

On Feb 17, 2004, at 11:53 AM, Oakley Masten wrote:

How do I get the associated email address for a name listing?

Keep in mind that each name can have more than one email address. Here is some sample code that will get you going:

tell application "Address Book"
set this_person to person "Michelle Steiner"
set persons_email to email of this_person
repeat with mail_item in persons_email
display dialog label of mail_item & ": " & value of mail_item
end repeat
end tell

-- Michelle

--
Peter pull at St. Taffy's tonight! (Or is it the other way around?)
_______________________________________________
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.

References: 
 >Address Book Question (From: Oakley Masten <email@hidden>)

  • Prev by Date: Address Book Question
  • Next by Date: Re: Mac Mail Questions
  • Previous by thread: Address Book Question
  • Next by thread: Re: Address Book Question
  • Index(es):
    • Date
    • Thread