I get why he does. He wants the script to launch from Finder and not pop-up Terminal to a user.
A graphical sudo does a good job of this. This is exactly why Gnome/KDE both have graphical versions of sudo, so the user never sees the "cli" and doesn't have to type anything.
Hello and thanks for your replies... yes I googled and yes I already found cocoasudo 🙂 thanks by that... but the problem with cocoasudo is, that I need to compile it by myself... I need something, what is buildt-in.