Apple Event script

Hi All

I have a script to rename folder. Now I want a AppleVent script which automatically run this script after every 5 minute.

Please do some needful.
Thanks

Save it as an stay-open applet and include this handler so that runs every 5 minutes:


on idle
run
return 5*60
end idle

Or alternatively, if it cannot be run as a separate applet


repeat
yourhandler()
tell me to do shell script ("sleep 300" )
end repeat

on yourhandler()
--ยป your script body goes in here
end your handler