Skip to content

Instantly share code, notes, and snippets.

@jacobsalmela
Created January 5, 2015 18:54
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jacobsalmela/91bc266107acdfc90cf6 to your computer and use it in GitHub Desktop.
Save jacobsalmela/91bc266107acdfc90cf6 to your computer and use it in GitHub Desktop.
00.Enable accessiblity
case ${OSTYPE} in
# Snow Leopard through Mountain lion
darwin10*) touch /private/var/db/.AccessibilityAPIEnabled;;
darwin11*) touch /private/var/db/.AccessibilityAPIEnabled;;
darwin12*) touch /private/var/db/.AccessibilityAPIEnabled;;
# Mavericks and Yosemite
darwin13*) sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "INSERT INTO access VALUES('kTCCServiceAccessibility','com.apple.systemevents',0,1,1,NULL);";
sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "INSERT INTO access VALUES('kTCCServiceAccessibility','com.apple.RemoteDesktopAgent',0,1,1,NULL);";;
darwin14*) sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "INSERT INTO access VALUES('kTCCServiceAccessibility','com.apple.systemevents',0,1,1,NULL);";
sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "INSERT INTO access VALUES('kTCCServiceAccessibility','com.apple.RemoteDesktopAgent',0,1,1,NULL);";;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment