title: How AppleScript can get STDIN inside the code?
body: <p>Google suggests</p>
  
  <pre><code>echo "input" | osascript filename.scpt
  </code></pre>
  
  <p>with <code>filename.scpt</code></p>
  
  <pre><code>set stdin to do shell script "cat"
  display dialog stdin
  </code></pre>
  
  <p>However, I could get only blank dialog: it has no text. How can I get stdin from AppleScript at the version? </p>
  
  <p>My OS version is OSX 10.8 Mountain Lion.</p>