title: Applescript keystroke wont work in BBEdit
body: <pre><code>tell application "BBEdit"
      activate
      tell window 1
          repeat 100 times
              repeat 5 times
                  key code 124
              end repeat
              --select insertion point after character 5
              keystroke return
              --keystroke key code 36
          end repeat
      end tell
  end tell
  </code></pre>
  
  <p>gives error</p>
  
  <pre><code>error "BBEdit got an error: Can’t get keystroke \"
  \" of window 1." number -1728 from keystroke "
  " of window 1
  </code></pre>
  
  <p>All I want to do is emulate moving the cursor 5 spaces and press the return key lots and lots of time.</p>
  
  <p>Seemed simple enough...</p>