title: open programs with applescript
body: <p>2 part question:</p>
  
  <p>I'm simply trying to run programs using applescript from the terminal, so I tried:</p>
  
  <pre><code>$ osascript tell application "iTunes" to activate
  </code></pre>
  
  <p>and get the error:</p>
  
  <pre><code>osascript: tell: No such file or directory
  </code></pre>
  
  <p>Giving the full path to the program did not work either.  What am I missing?  The second part of the question is what I eventually want to use applescript for.  I would like to use it to open an application I built using py2app.  Can applescript open any mac app or just certain ones that are already compatible.</p>
  
  <p>Thanks</p>