Forked from jtimberman/install_command_line_tools_no_prompt
Last active
August 29, 2015 14:07
-
-
Save jmara/ac10b3715fb5960c9c47 to your computer and use it in GitHub Desktop.
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
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 |
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
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