title: Applescript Error
body: <p>We are trying to install an app thru Applescript using terminal commands as mentioned below. Firstly it will mount the dmg file and then install the app to App folder.
  While installing app to App folder its asking for password, how to handle this password using Applescript??</p>
  
  <pre><code>hdiutil mount /Users/rajasekaranr/Downloads/install_flash_player_osx.dmg"
  sudo cp -R "/Volumes/Flash Player 2/Install Adobe Flash Player.app" /Applications 
  </code></pre>
  
  <p>Error while executing the above commands using apple script</p>
  
  <pre><code>error "sudo: no tty present and no askpass program specified" number 1
  </code></pre>