Last active
July 7, 2021 20:26
-
-
Save bjhomer/9393869 to your computer and use it in GitHub Desktop.
Starting and stopping VoiceOver from the terminal
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
//The very slow, but more semantically correct way | |
osascript -e 'tell application "VoiceOver" to activate' | |
osascript -e 'tell application "VoiceOver" to quit' | |
// The really fast way. (96 is the keycode for F5.) | |
osascript -e 'tell application "System Events" to key code 96 using command down' |
And by "a couple seconds", I mean more like 10 seconds.
Also… it seems that the 'activate' command doesn't want to quit. I have to kill it with Ctrl-C
. So yeah, still looking for a better solution.
Updated with a much faster method.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The activate command takes a couple seconds… still looking to see if there's a faster way.