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


Click here to return to the '10.4: A script to run iSync with one click' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: A script to run iSync with one click
Authored by: macevangelist on Jun 30, '05 06:41:41AM
One line of code should be enough for the cron triggered version:
tell application "iSync" to synchronize
If you want a script that runs in the background and tells iSync to synchronize every hour then use this code:

on idle
	try
		tell application "iSync" to synchronize
	end try
	return (60 * 60)
end idle
You will have to save the script text as an application bundle and make sure the 'Stay Open' checkbox is selected. After saving open the Info.plist file that is in the application bundle and add the key 'LSUIElement' and give it a string value of '1'. This way the script will not show up in the Dock. The last step would be to add the script application to the login items.

I hope the iSync menu extra will be able to start iSync synchronization again some day.

[ Reply to This | # ]