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??
hdiutil mount /Users/rajasekaranr/Downloads/install_flash_player_osx.dmg"
sudo cp -R "/Volumes/Flash Player 2/Install Adobe Flash Player.app" /Applications
Error while executing the above commands using apple script
error "sudo: no tty present and no askpass program specified" number 1
Try: