Last active
December 15, 2015 06:19
-
-
Save fcrespo82/5215611 to your computer and use it in GitHub Desktop.
This gist shows how to run an app as admin in OS X
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
on run {input, parameters} | |
using terms from application "Finder" | |
set filepath to POSIX path of input | |
do shell script "open '" & filepath & "'" with administrator privileges | |
end using terms from | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment