set leftArrow to ASCII character 28 set rightArrow to ASCII character 29 set upArrow to ASCII character 30 set downArrow to ASCII character 31 delay 2 tell application "System Events" tell process "sigil" repeat 500 times keystroke space keystroke upArrow end repeat end tell end tell