Skip to content

Instantly share code, notes, and snippets.

@fcrespo82
Last active December 15, 2015 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fcrespo82/5215611 to your computer and use it in GitHub Desktop.
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
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