Re: Scripting Apple addressbook
Re: Scripting Apple addressbook
- Subject: Re: Scripting Apple addressbook
- From: Cameron Knowlton <email@hidden>
- Date: Thu, 10 Feb 2011 11:38:13 -0800
Title: Re: Scripting Apple
addressbook
Beyond eloquent, Michelle. I've never seen lists manipulated so
well and so easily. Thanks for the idiom!
Cameron Knowlton
At 12:03 PM -0700 11/02/10, Michelle Steiner wrote:
On Feb 10, 2011, at 11:24 AM, Bob Cuilla
wrote:
I would like a write a script that scans
a particular GROUP and look for entries that have the field
"birthday" with something other than null. I would
then like to list the first name and birthday so that i can print
them.
set data_list to {}
tell application "Address
Book"
set
the_group to (item 1 of (choose from list (get name of
groups)))
set
Birthday_People to people of group the_group whose birth
date is not missing value
repeat with this_person in Birthday_People
copy
{first name of this_person, short date string of (get birth date of
this_person)} to end of data_list
end
repeat
end tell
data_list
-- Michelle
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden