Tag Archives: Addressbook

Transfer Phone Numbers from gammu to the Mac Adressbook

ok, make yourself comfortable, fasten your seatbelt and stop smoking. This will be quite a journey:

Get gammu and backup the phone data:
$ gammu backup phonedata.txt -yes
open phonedata.txt and save it in “MacRoman” encoding with Unix line endings
run it through this ruby script:
#!/usr/bin/ruby -w —

# http://www.rubycentral.com/pickaxe/
# http://homepage.mac.com/phrogz/CSV2vCard_v2.html

records = {}
fields = {}

eor = /^*$/
bor …