OS X funnies: It's the little things
#!/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.