iChat: reconnect to AIM automatically?

I’m running this script from menu bar


tell application "iChat"
	log in "AIM"
end tell

to reconnect.

Which does the job. But can anyone advise a way to have this run automatically?

I looked at the idle handler but don’t have enough of a grasp of applescript to know if that’s the right approach.

found what I needed from this post:

http://bbs.applescript.net/viewtopic.php?id=14466

in case you were curious or a newbie like myself:


on idle
	tell application "iChat"
		log in "AIM"
	end tell
	return 300
end idle

Then went to Save As…

and selected these options:

File Format: Application
Options: Stay Open

Reason for the script: I keep getting kicked off AIM every 10 minutes or so at work.