x = 0; for x = 1 to 1000 {msg (x); rollBeachBall ()} » true
Script displays numbers from 1 to 1000 and rolls the beachball cursor as it does so.