Address Book Question
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.