title: How can I have a button run an Applescript?
body: <p>I am using Xcode and Interface Builder. My Xcode project is based off the Applescript template. I have a button in interface builder. I want </p>
  
  <pre><code>    tell application "Terminal"
          activate
          do script "list" in front window
      end tell
  </code></pre>
  
  <p>to run when the button is clicked. Btw it's Xcode 3.2.4</p>