Created
August 17, 2011 17:52
-
-
Save wibron/1152143 to your computer and use it in GitHub Desktop.
Run shell-command with Applescript as root
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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