Re: Applescript-users Digest, Vol 2, Issue 630
Re: Applescript-users Digest, Vol 2, Issue 630
- Subject: Re: Applescript-users Digest, Vol 2, Issue 630
- From: Michelle Steiner <email@hidden>
- Date: Tue, 27 Sep 2005 16:34:25 -0700
On Sep 27, 2005, at 3:58 PM, Patrick J. Collins wrote:
Is there an easy way to count every email of every person in
addressbook?
Do you want the total number of email addresses in the data base, or
the total number of email addresses for each person on the data
base? Your question does not make that clear.
If the former, this will do it:
tell application "Address Book"
count email of people
end tell
If the latter, you will have to use a repeat loop:
set foo to {}
tell application "Address Book"
repeat with this_person in people
copy ({count email of this_person}) to end of foo
end repeat
end tell
foo
If you want it to include the name of each person with the count:
set foo to {}
tell application "Address Book"
repeat with this_person in people
copy ({name of this_person, count email of this_person}) to
end of foo
end repeat
end tell
foo
-- Michelle
--
"Push to test." (click) "Release to detonate."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden