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

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.


References: 
 >email address from address book (From: Andre Vink <email@hidden>)

  • Prev by Date: Re: email address from address book
  • Next by Date: Re: Scripting iCal
  • Previous by thread: Re: email address from address book
  • Next by thread: Controlling Relay Host
  • Index(es):
    • Date
    • Thread