-- setup some fun for use later in this script.
set (something, wonderful) to \
( "put the long time" & return, "wait 1 second" )
-- '120 seconds', '120000 milliseconds' also work
set delay to 2 minutes
set startTime to the time
repeat until the time >= startTime + delay
try to do something && wonderful -- Its valid syntax!
set endTime to the time + 10 seconds
repeat while the time is earlier than endTime
put the long time
wait a second