This gist shows how to run an app as admin in OS X