Re: email address from address book
Re: email address from address book
- Subject: Re: email address from address book
- From: Michelle Steiner <email@hidden>
- Date: Wed, 12 May 2004 01:14:05 -0700
On May 12, 2004, at 12:34 AM, Andre Vink wrote:
How to get an email address from every person in to a list?
tell application "Address Book"
properties of email of every person
end tell
Here's how to get them into a file; you should be able to modify it to
get them into a list.
set outfilename to choose file name
set outfile to open for access outfilename with write permission
tell application "Address Book"
repeat with thisPerson in the people
my writemyfile(outfile, name of thisPerson as text)
repeat with ThisAddress in email of thisPerson
my writemyfile(outfile, tab & value of ThisAddress)
end repeat
my writemyfile(outfile, return)
end repeat
end tell
close access outfile
on writemyfile(filetowrite, itemToWrite)
write the itemToWrite to the filetowrite
end writemyfile
-- Michelle
--
Homosexuals do not recruit; Christians recruit, and so does the
military.
_______________________________________________
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.