Searching for birthdays in Address Book

Although the AppleHelp for Address Book says explicitly “You can use Address Book to remember your friends’ birthdays”, its search box ignores the birthday field. I want to say something like this:

tell application “Address Book”
set thePeople to every person where month of birth date is “December”
… etc …

It compiles fine but the app doesn’t like it
(NSCantCreateScriptCommandError). I tried a few obvious variations.
Can I do this in the one-liner where clause like I want, or will it
take something more complicated?

Andrew

I got it to work using something a little more complicated:

Jon


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]

Thanks, Jon, that was just what I needed. Nice touch, first getting only the entries that actually have birthdays, that saves lots of time. Where did you come by the info about “missing value”? I didn’t find it in the Address Book dictionary.

Andrew

Andrew, you can list all of the properties of every person, which shows ‘missing values’

[This script was automatically tagged for color coded syntax by Script to Markup Code]