Re: Scripting Apple addressbook
Re: Scripting Apple addressbook
- Subject: Re: Scripting Apple addressbook
- From: Michelle Steiner <email@hidden>
- Date: Thu, 10 Feb 2011 12:03:30 -0700
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
-- There are three kinds of computer users: 1. Those who use a Mac 2. Those who wish they could use a Mac 3. Those who don't know any better
|
_______________________________________________
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