Apple script with Bash SU Authentication

Hi
I have a bash scrips pasted into "Run shell script " Action in Automator apple script under 10.9.3 and the command is copy command a dll to /Library/Audio/Plug-Ins/VST/ that is read only.

I need to prompt the user that runs the script to enter the password. what is the way to to that?

Thanks!

Model: MacPro 5,1
AppleScript: 2.3
Browser: Safari 537.36
Operating System: Mac OS X (10.8)

Hi,

you can run a shell script also with the do shell script AppleScript command.
adding with administrator privileges asks for the credentials (admin-user and password), for example

do shell script "/path/to/script.sh" with administrator privileges

is the equivalent to

sudo /path/to/script.sh