Skip to content

Instantly share code, notes, and snippets.

@yanbab
Created November 30, 2013 22:32
Show Gist options
  • Save yanbab/7725458 to your computer and use it in GitHub Desktop.
Save yanbab/7725458 to your computer and use it in GitHub Desktop.
Getting sudo to ask for password via the GUI
/usr/bin/osascript -e 'do shell script "/path/to/myscript args 2>&1 etc" with administrator privileges'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment