How to link multiple key events in AppleScript?
tell application "System Events" to repeat 2310 times
    tell application process "Mail" to set frontmost to true
    keystroke "s" using {shift down, command down}
    delay 1.5
    keystroke return
    delay 1
    key code 125
end repeat