• 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: Scripting Apple addressbook
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Scripting Apple addressbook
      • From: Cameron Knowlton <email@hidden>
References: 
 >Scripting Apple addressbook (From: Bob Cuilla <email@hidden>)

  • Prev by Date: Scripting Apple addressbook
  • Next by Date: Re: Scripting Apple addressbook
  • Previous by thread: Scripting Apple addressbook
  • Next by thread: Re: Scripting Apple addressbook
  • Index(es):
    • Date
    • Thread