title: Change Applescript into single line NSApplescript source
body: <p>Im building an app for learning purposes of using applescript to send multiple commands during an action. Below is the code I'm messing with but I have stripped out the actions in between the "" and replaced them with numbers. Everything works fine in applescript but making this into an NSApplescript initwithsource: line has been a bother. </p>
  
  <pre><code>tell application "Terminal"
      activate
      set currentTab to do script "1"
      do script "2" in currentTab
      do script "3" in currentTab
      do script "4" in currentTab
      delay 0.5
      tell application "Finder" to set visible of process "Terminal" to false
  end tell
  </code></pre>
  
  <p>What is the best way to combine this applescript into a single line? Thanks!</p>