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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated with a much faster method.