OS X funnies: It's the little things

Friday, December 21st, 2007

Biggs is the editor of TechCrunch Gadgets. Biggs has written for the New York Times, InSync, USA Weekend, Popular Mechanics, Popular Science, Money and a number of other outlets on technology and wristwatches. He is the former editor-in-chief of Gizmodo.com and lives in Bay Ridge, Brooklyn. You can Tweet him here and G+ him here. Email him directly at john@techcrunch.com. → Learn More

p6_cover.gifI had a problem syncing my iPhone to iCal. Basically it wouldn’t let me clear out the syncing cache and I suffered many a missed appointment. So I did some searches, standard stuff, but gave up after a while until today. I did another search and found an Apple forum mention of a quick fix to completely clear out SyncServices, the thing that handles all syncing. It tells you to run a command-line Perl script. I ran it, the iPhone synced, and all was right with the world. Well, I wanted to check to see what was inside that script:

#!/usr/bin/perl
#
# usage: resetsync.pl [full]
# Copyright (c) 2007, Apple Inc. All rights reserved.
#

use SyncServices;
my $syncmgr = ISyncManager->sharedManager();
if($ARGV[0] eq “full”) {
# Completely reintializing sync state
$syncmgr->reallyResetSyncData();
}
else {
# Resetting sync history
$syncmgr->resetSyncData();
}

So if you type ‘full’ it really resets sync data. If you don’t, it just kind of waves its hand at the sync data and makes some lunch. Sneaky, sneaky, sneaky.

Sponsored Ads

blog comments powered by Disqus

Sponsored Ads

Sponsored Ads