title: Send a key code to an application without activating it first?
body: <p>I'm trying to send the spacebar key to an application without activating it first. The following code almost does what I want but it brings the application to the foreground first.</p>
  
  <pre><code>tell application "X"
      activate
      tell application "System Events" to key code 49
  end tell
  </code></pre>