Posts

Showing posts from January 5, 2019

Applescript to mute Discord

Image
3 Edit: My initial question does not appear to have a solution. Instead I used an alternate method. Scroll down to see the alternate method. I'm looking for a solution to mute my mic in Discord that I can then add to my touchbar via bettertouchtool. BTT cannot send key combos to Discord for whatever reason. As far as I can tell I have two options. Use applescript to activate the Discord window, send the key press, then hide the window. This works, but flashing the application up for a moment is annoying. Worse when it's on another desktop as it will flip desktops over and then back. Use applescript to click the top menu to click the Discord menu, and work down through the UI elements to click the Mute button. I'm not experienced enough with applescript to make the second option work, but I think it