AppleScript for iSync

Hi,

I dont know if its possible but since most things seem to be these days I shall ask.

I have a Motorola that syncs very nicely with my Mac. Now, I was wondering if there was a script that I could make iCal run once a day that will open iSync and make my computer sync all the devices and then make my compter sleep?

Im all new to scripting so I wouldnt have a clue so thanks in advance for any help!

Lee

Model: PowerBook G$
AppleScript: ?
Browser: Safari 419.3
Operating System: Mac OS X (10.4)

Hi Lee ,

welcome to MacScripter.

give this a try:

tell application "iSync"
	synchronize
	delay 5
	repeat while syncing
		delay 1
	end repeat
end tell
tell application "System Events" to sleep

This works perfect!
Thanks heaps and thanks for the welcome!