title: Applescript - Bring window to foreground
body: <p>I have an application with several windows opened at the same time.
  I'd like to bring a specific window to foreground (I know its title).</p>
  
  <p>At the moment I'm using a combination of keys to achieve this task but I'd like to try something different since I'm experiencing some problems with this approach.</p>
  
  <pre><code>tell application "System Events"
      set frontmost of process "appIT" to true
      keystroke "1" using command down
      delay 0.2
  end tell
  </code></pre>