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

10.4: A script to run iSync with one click Apps
Tiger only hintJust an easy hint: I set up my sync services in Tiger a way that they are synced automatically every hour. But the automatic sync only refers to .Mac. I wanted to sync my mobile automatically this way as well using iSync.

So I wrote just a small AppleScript which does the job for me:
tell application "iSync"
  activate
  synchronize
  repeat
    if not syncing then exit repeat
  end repeat
  quit
end tell
Save this as a program and call it from the crontab. Or you could use a program like Butler or LaunchBar and start it with one simple keypress.
    •    
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[8,034 views]  

10.4: A script to run iSync with one click | 3 comments | Create New Account
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: JoolsG4 on May 27, '05 10:25:49AM

Here's one I prepared earlier...

http://www.macupdate.com/info.php/id/18164
http://www.versiontracker.com/dyn/moreinfo/macosx/26871

With an icon for adding to the dock or your favourite menu bar launcher.



[ Reply to This | # ]
10.4: A script to run iSync with one click
Authored by: adrianm on May 27, '05 12:23:05PM

That looks like a nasty busy loop.



[ Reply to This | # ]
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 | # ]