Last active
December 10, 2021 14:33
-
-
Save yangwao/22dcf9d299759664f018f5379fe86366 to your computer and use it in GitHub Desktop.
activate remove boring windows for humans
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
### Open script editor and save as app | |
### dont forget to add permisions in privacy window to controll it | |
### ht vikiival for evening cracking | |
### delay is might tricky! | |
### credits goes to https://gist.github.com/silesky/2da3a6bef1703e38d901ec9c623eecbd | |
tell application "System Preferences" | |
set the current pane to pane id "com.apple.preference.universalaccess" | |
delay 0.3 #needs time to open universal access | |
tell application "System Events" to tell process "System Preferences" to tell window "Accessibility" | |
select row 5 of table 1 of scroll area 1 #open display preferences | |
click radio button "Colour Filters" of tab group 1 of group 1 | |
click checkbox "Enable Colour Filters" of tab group 1 of group 1 | |
end tell | |
end tell | |
tell application "System Preferences" to quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
numba go only up