This is my naive attempt at parsing an (Apple) Address-Book-exported vCard (.vcf file) into markdown files.
Removing my dependency to Apple's Address Book.
- Open Address Book and select all your contacts (select one then ⌘-a)
- Export a vCard by going to File > Export > Export vCard...
- place this "vCards.vcf" file in the same directory as parse.rb
- run
ruby parse.rb - look into the newly created 'contacts' directory that should contain all your contacts as markdown files
This is not exhaustive in any way:
- It does not do any distinction between fax or phone numbers
- same goes for email, jabber and aim addresses