Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An AppleScript to keep your devices in sync' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to keep your devices in sync
Authored by: sly_dog_jonah on Apr 23, '06 03:13:29AM
Here's my tweak of the above script, which keeps iSync open if there have been any errors in the sync process (e.g. Bluetooth dongle missing, phone out of range). The beauty of running from iCal is that if the computer is off or asleep at the time, the script will run upon wakeup. I'm not sure if the other automated running options above would work on wakeup, but iCal certainly does.

tell application "System Events" to set iSyncRunning to ¬
	(number of items in (processes whose name is "iSync") is greater than 0)
tell application "iSync"
	synchronize
	repeat while (syncing is true)
		delay 5
	end repeat
	if (iSyncRunning is not true and sync status is 2) then quit
end tell


[ Reply to This | # ]
An AppleScript to keep your devices in sync
Authored by: sky33940 on Feb 18, '07 07:04:08AM
Thanks. Works perfectly. Any idea on how to make a recurring event of less than one day in iCal? Jean

[ Reply to This | # ]