How To Create macOS App To Run Sudo Command with Password

This is how I created app that runs shell scripts with sudo command that requires password.

do shell script “sudo diskutil mount /dev/disk0s1” with administrator privileges

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.