Batch update the birthdays in my iPhone contacts Years ago when I got my first iPhone, AT&amp;T transferred all of the contacts from my old phone. My old phone didn't have a birthday field in the contacts. Instead of leaving the field empty on the iPhone, AT&amp;T's system set them all to Jan 1, 2000.

Is there a way to update these with a script? Export them to a CSV, find-and-replace, and reimport?

Update - This is what my Contacts app looks like. The middle section is an Exchange server, which contains Contacts. However, those contacts appear unrelated to Exchange. The Exchange directory is the "All Work" group above it, and the "Work Global Address List" below.



Using AppleScript, "Address Book" is automatically changed to "Contacts" and only those 3 contacts from the Contacts subgroup above are selected:

tell application "Address Book"`
  set thePeople to every person
    repeat with thePerson in thePeople
      return the name of thePerson
  end repeat
end tell
If you want to just clear the birthday field programmatically, you could do that on a Mac that syncs contacts with the iPhone (either via iCloud or iTunes).

Open up AppleScript editor, paste in the following and hit run to clear every birthday in your address book.

tell application "Address Book"
    set thePeople to every person
    repeat with thePerson in thePeople
        set the birth date of thePerson to missing value
    end repeat
    save
end tell


If you have the birthday data already in some other format and are looking to import it, that could be done, but would be a bit trickier. You'd probably need to get the AppleScript to look up the birthday for a given person from a file. If you need something like that, please edit your question to be more specific and give some sample data if possible.