Apple iPhone, Adress Book and Google Sync
Google announced yesterday a new service for syncing Gmail contacts and up to five Google calendars with mobile devices, even the iPhone by offering M$ ActiveSync for compatible devices.
As expected set-up is quick and easy, even directly from the iPhone, and it works even though the beta state rather. As long as your contacts do not have more than one mobile number. But there is at least one new problem to solve: how to get Apple Adressbook sync again with Gmail?
Since Mac OSX 10.5.3 there is a new feature that enables Apple Address Book sync with Gmail by using the Google Data APIs Objective-C Client Library - not only for iPhone and iPod touch owners. It works very well, although not all fields are synced correctly. Maybe this is the niche commercial solutions like Spanning Sync.
However to re-enable the “Sync Now” function, i found a two command solution at Google mobile help. By default, the sync client for Google is an “app client”, which means it requires some other address book to run (MobileMe, Yahoo, Exchange or an iPod contact sync) to run. To enable Google sync client to operate as a full sync client, you have to change the client type from “app” to “server”. This will enable the “Sync now” button and will make sure Google sync is run every time a sync is run.
To change the Google sync client type, open a terminal window and type (one line)
sudo defaults write /System/Library/PrivateFrameworks/GoogleContactSync.framework/Resources/ClientDescription Type 'server'
Then type the following one line command to restore the permissions on the plist file:
sudo chmod 644 /System/Library/PrivateFrameworks/GoogleContactSync.framework/Resources/ClientDescription.plist
You can now go in Address Book’s preferences and enable Google contacts sync, without needing to enable Yahoo sync or plug an iPod for sync to work. Optionally go into iSync > Preferences and add the iSync menu to your menu bar. This let’s you see when it is syncing, and sync it manually.
Of course you can also initiate the synchronisation using the command line. Use this to run it periodically using launchd or cron:
/System/Library/PrivateFrameworks/GoogleContactSync.framework/Versions/A/Resources/gconsync --sync gconclid --register 1 --username user@gmail.com --password PASSWORD --syncmode fast
Wonder why this is a so mac centric post? On my Linux workstations I am using Sunbird in combination with the Provider for Google Calendar plugin and the Google contacts extension for Thunderbird since ages without having any trouble. But getting the the Apple stuff to work right with Google took me quite some time. Kudos to Michael Shick!
COMMENTS / 15 COMMENTS
Synchronisation automatique de l’agenda et des contacts entre Google, le Mac et l’iPhone « Next Presso added these pithy words on Aug 02 09 at 04:57[...] à Marco Jung pour cette solution plus élégante que d’activer la synchronisation [...]
Syncing Mac contacts and calendars with Google and iPhone « One guy, three girls… added these pithy words on Aug 17 09 at 05:34[...] you have that problem, then follow Marko’s steps in his blog post here (http://blog.markojung.net/2009/02/sync-everything-with-google/). Sync’ing started up and now the option appears in [...]
Contact Sync | alexking.org added these pithy words on Sep 08 09 at 08:50[...] couple of months ago, I took the plunge and moved from Plaxo to Google Sync. I had to run the sync manually from the command line, but it worked. And even better, it let me sync contacts to my BlackBerry over the air using Google [...]
Corn added these pithy words on Jun 08 09 at 08:55Thanks, this is great!
Gray Beard added these pithy words on Jun 18 09 at 03:31Thanks! This got me further than anything I’ve found so far. The only problem is that additions on the Google side get synced to my Mac, but additions on the Mac dont get synced to Google.
Any ideas?
Jonas Flint added these pithy words on Jun 19 09 at 07:48hmmm. getting the following message error
2009-06-19 14:41:42.721 gconsync[203:10b] ISyncSession record validation failure: Value other pushed for enumeration property service on com.apple.contacts.IM is not an allowed value.
L added these pithy words on Jul 11 09 at 06:28Doesn’t this sync the All Contacts category rather than My Contacts?
Nicholas added these pithy words on Jul 23 09 at 04:14It didn’t work for me. I still missing “Google Sync” in my Address Book. I’m using OSX 10.5.7 and Address Book 4.1.2 (700). If you have any suggestion, drop me a line.
Tks Nicholas
mjung added these pithy words on Jul 24 09 at 04:32@Nicholas Did you try a manual sync using the provided command line from this post? It helped me sometimes to get things started.
mjung added these pithy words on Jul 24 09 at 04:36@Nicholas: If you have no iPod touch or iPhone, you should read LifeHacker’s Tip to enable Google Sync.
Nicholas added these pithy words on Jul 24 09 at 06:50@mjung The command line process worked pretty well but I still missing the “Sync with Google” button. Any another suggestion?
plaj added these pithy words on Aug 11 09 at 03:55Bjr, à tous, je viens de faire la manoeuvre et désormais j’ai SYNC qui se lance toutes les heures et demi. Pouvez-vous me dire la commande pour annuler ceci : 30 * * * * osascript -e ‘tell application “iSync” to synchronize’
MerciBjr, in all, I have just made maneuver and consequently I have SYNC which launches every hour half. You can say to me order to cancel this
Jason added these pithy words on Aug 15 09 at 10:39Thanks for the tips. I didn’t have any “Sync Now” option but after following your steps, it sync’d and now I have the “Sync Now” option.
BAR added these pithy words on Aug 17 09 at 09:18That’s work for me, but I have the following problem. I have exported my adress book contacts from mac in Vcard format, and I have imported it to google contacts, Then I synchronise after deleted all my contacts in my address book, Everything is perfect excepted for the Préfix. It’s ok when I have Mr in my contact (It’s the same in french and English) but With Mlle (Miss) or Mme (Mrs) that dosen’t work, Adress boob think that this is the first name. How do you think it’s possible to change that?
Johannes added these pithy words on Sep 03 09 at 04:54Wow!!! That’s what I’ve been searching for so long… Even works wit SL 10.6.!!! Thanks a LOT!
SPEAK / ADD YOUR COMMENT
Comments are moderated.

