I wrote a small command script for changing file permissions in Terminal, but the user that runs the script needs to type in the password of the computer. This happens in the Terminal window itself.
Is it possible to extend this so it gets a popup box where you enter your computer username and password?
This would make the process look cleaner for people that are not into programming.
Best Answer
You can use AppleScript to perform a sudo with a GUI.
In ‘…’ insert a command to be executed as sudo, for example a path to your script.
To run this from Terminal, you can use osascript.