Newbie: Need to write a script that repeats dialog box every hour

For some reason I cannot figure out how to accomplish this:

repeat
	display dialog "Drink Water"
	return (60 * minutes)
end repeat

HELP!

Try this.

repeat
	display dialog "Drink Water"
	delay (60 * minutes)
end repeat

Or save this a stay-open application:

on idle
	try
		display dialog "Drink Water"
		return (60 * minutes)
	on error
		tell me to quit
	end try
end idle

Alternatively, you could have this app run a script: FlexTime

Or you have something really simple…


tell application "Finder"
	display dialog "Drink Water"
end tell

…and have cron run it every hour. I use CronniX to set cron entries for my overnight automations:

http://www.abstracture.de/projects-en/cronnix