OS X funnies: It’s the little things
  • 2 Comments
by John Biggs on December 21, 2007

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.

Comments rss icon

Leave Comment

Commenting Options

Enter your personal information to the left, or sign in with your Facebook account by clicking the button below.

Alternatively, you can create an avatar that will appear whenever you leave a comment on a Gravatar-enabled blog.

bugbugbug