In my continuing migration to Google-everything, I wanted to migrate my Mac OS X address book to Google Mail. Importing contacts into Google Mail requires that the entries be in CSV; the OS X.4 Address Book only exports in vCard (.vcf) format.
Here’s a simple Perl script for handling this conversion. Currently, it imports the following information (if present in your vCard entries):
Last Name First Name Middle Name Birthday Email Home address Work address Work phone Home phone Cell phone
- Select all your contacts from Mac OS Address Book and export them.
- Run the perl script fetched from above (you will need Text::vCard::Addressbook installed): parse_vcard.pl /path/to/vCard_file.vcf > addresses_for_google.csv
- Import the addresses_for_google.csv into your GMail account