Skip to content

Instantly share code, notes, and snippets.

@organicaudio
Created January 6, 2016 08:08
Show Gist options
  • Save organicaudio/494e6e659504ef6f809b to your computer and use it in GitHub Desktop.
Save organicaudio/494e6e659504ef6f809b to your computer and use it in GitHub Desktop.
Running a Shell Script as Root
tell application "Terminal"
do shell script "~/.shellscript.sh" password "yourpassword" with administrator privileges
quit
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment