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

Address Book Question


  • Subject: Address Book Question
  • From: Oakley Masten <email@hidden>
  • Date: Tue, 17 Feb 2004 12:53:52 -0600

Hi All

Using the following script I can get Groups and Names but can not find
a way to get associated email addresses of the names.

tell application "Address Book"
--Routine gets list of groups
set NomeOGroups to name of every group as list
set theResult to choose from list NomeOGroups with prompt "Which
Group Do You Want?" without multiple selections allowed

--Routine gets list of names for choice
set ListONames to the name of every person
set theResult to choose from list ListONames with prompt "Which
Person Do You Want?" without multiple selections allowed
--display dialog "You have chosen - " & theResult

--Routine gets list of addresses
set ListOAddresses to the email of every person

end tell

What I get is a list of records like - {
email 1 of person id "C0EB6745-989F-11D7-B6EE-003065423E5C:ABPerson"
of application "Address Book"
}

If I use "email address" instead of just "email I get an error and no
data.

If I use "address" instead of just "email" I get the same list of
records as above.

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

Thanks for your help in advance

Oakley
_______________________________________________
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: Address Book Question
      • From: Lachlan Deck <email@hidden>
    • Re: Address Book Question
      • From: Paul Berkowitz <email@hidden>
    • Re: Address Book Question
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: color information for a file
  • Next by Date: Re: Address Book Question
  • Previous by thread: Re: Mac Mail Questions
  • Next by thread: Re: Address Book Question
  • Index(es):
    • Date
    • Thread