Created
March 22, 2018 17:51
-
-
Save cdeutsch/f58dc1fd9a85490ec7e2b1e8fdec66d4 to your computer and use it in GitHub Desktop.
Toggle mute on Discord with Apple Script
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
| -- requires that "cmd+shift+m" is the keyboard shortcut for mute | |
| on run | |
| tell application "Discord" to activate | |
| tell application "System Events" | |
| -- toggle mute | |
| keystroke "m" using {command down, shift down} | |
| -- cmd+tab back to previous application | |
| keystroke tab using {command down} | |
| end tell | |
| end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment