Last active
December 3, 2024 11:46
-
-
Save dorukgezici/9eaacf0bc04854870fe04741fe991367 to your computer and use it in GitHub Desktop.
Linux's gksudo equivalent for macOS Sierra, written with AppleScript.
This file contains hidden or 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
#!/usr/bin/osascript | |
on run argv | |
set |command| to "" | |
repeat with parameter in argv | |
set |command| to |command| & " " & parameter | |
end repeat | |
do shell script |command| with administrator privileges | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment