title: Why is my Applescript opening multiple terminal windows?
body: <p>I am trying to write a script that will open Sublime Text in my working directory, cd to my VM folder and execute "vagrant up", then open my site directory in chrome.</p>
  
  <p>The script works, just not well. It opens three terminal windows and, on occasion, multiple Sublime windows. Any thoughts or ideas? Also, how would I go about having Chrome open the URL in the new tab that is automatically created on opening rather than making a second new tab?</p>
  
  <pre><code>tell application "Google Chrome"
      activate
      open location "http://codeup.dev"
  end tell
  
  tell application "Terminal"
      activate
      do script "subl ~/vagrant-lamp/sites/codeup.dev/public/"
      do script "cd ~/vagrant-lamp/; vagrant up"
  end tell
  </code></pre>