:repeat with i from 1 to 250 tell application "System Events" ... end tell end repeat