Question regarding Sudo

Hi all im new to this forum and basically scripting in general. My question is how do I run a shell script that involves the sudo command without putting my password in the script itself. I want a dialog box to open to allow me to type my password (if possible in asterisks) and hit ok. Any help would be greatly appreciated.

Model: Macbook
AppleScript: 2.0
Browser: Firefox 2.0.0.11
Operating System: Mac OS X (10.5)

Welcome. :slight_smile:

You would actually remove sudo from the command and use the administrator privileges parameter:

do shell script "" with administrator privileges

See also: Technical Note TN2065: do shell script in AppleScript