Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jmara/ac10b3715fb5960c9c47 to your computer and use it in GitHub Desktop.
Save jmara/ac10b3715fb5960c9c47 to your computer and use it in GitHub Desktop.
do shell script "xcode-select --install"
do shell script "sleep 1"
tell application "System Events"
tell process "Install Command Line Developer Tools"
keystroke return
click button "Agree" of window "License Agreement"
end tell
end tell
sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db \
"INSERT INTO access
VALUES('kTCCServiceAccessibility','com.apple.ScriptEditor.id.CLT',0,1,1,NULL);"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment