Skip to content

Instantly share code, notes, and snippets.

@wibron
Created August 17, 2011 17:52
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wibron/1152143 to your computer and use it in GitHub Desktop.
Save wibron/1152143 to your computer and use it in GitHub Desktop.
Run shell-command with Applescript as root
-- The shellscript:
-- #!/bin/sh
-- sudo mount_nfs -P 192.168.0.1:sharename ~/localPath
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