title: Why does this line run fine in script editor but not on the command line?
body: <p>The line:</p>
  
  <pre><code>set appPath to POSIX path of alias ":Applications:iTunes.app"
  </code></pre>
  
  <p>works fine in AppleScript Editor and returns: <code>"/Applications/iTunes.app/"</code></p>
  
  <p>But when I run the following command in the terminal:</p>
  
  <pre><code>osascript -e 'set appPath to POSIX path of alias ":Applications:iTunes.app"'
  </code></pre>
  
  <p>I get: <code>15:61: syntax error: File alias :Applications:iTunes.app wasn't found. (-43)</code></p>
  
  <p>Why?</p>