Does anyone know how I can automate changing a setting in the system control panel using Siri or voice control? I want to be able to quickly toggle sound output settings, but looking at Voice Control and looking at Shortcuts, I can't find anything that could let me do that. I can't even get Voice Control to open the system control panel.
Conversation
Notices
-
Embed this notice
Rachel Thorn (rachel_thorn@queer.party)'s status on Monday, 14-Nov-2022 11:27:43 JST Rachel Thorn -
Embed this notice
Rachel Thorn (rachel_thorn@queer.party)'s status on Monday, 14-Nov-2022 11:54:20 JST Rachel Thorn @supakaity Thank you, Kaity. I just tried to record what I want to (open System Control Panel, select "Sound," "Select output," "Close panel," but ScriptEditor didn't recognize any of it.
-
Embed this notice
Kaity A ?❤️???️??️⚧ (supakaity@aus.social)'s status on Monday, 14-Nov-2022 11:54:21 JST Kaity A ?❤️???️??️⚧ @Rachel_Thorn I don't have my mac on hand right now, but the best bet for me would be to write some AppleScript using Script Editor, save it as a .app into your /Applications folder and then ask Siri to run it.
Should be able to create things like:
`set volume output volume 50`
To set the volume directly to 50%
`set volume output muted not (output muted of (get volume settings))`
To toggle mute on/off etcThese are just simple examples, but AppleScript is pretty flexible and should be able to switch output devices, etc, depending on how complex you want it.
There are plenty of examples on the Googles.
-
Embed this notice
Rachel Thorn (rachel_thorn@queer.party)'s status on Monday, 14-Nov-2022 12:02:29 JST Rachel Thorn @supakaity Well, actually I was able to get it to recognize the very first part, by opening a window in the Finder that contained the System Control Panel app and double-clicking it. But it didn't recognize anything I subsequently did in the control panel.
-
Embed this notice
Rachel Thorn (rachel_thorn@queer.party)'s status on Monday, 14-Nov-2022 12:05:11 JST Rachel Thorn @fireborn Thank you! I wonder if there is some way to then automate that command after installing it.
-
Embed this notice
aaron (fireborn@dragonscave.space)'s status on Monday, 14-Nov-2022 12:05:12 JST aaron @Rachel_Thorn as far as I can tell, there isn’t a way to do this. There is a commandline tool called switch_audio that can, using launchbar/alfrid workflows or hammerspoon, but that’s more involved and probably not exactly what you’re looking for.
-
Embed this notice
Rachel Thorn (rachel_thorn@queer.party)'s status on Monday, 14-Nov-2022 13:52:22 JST Rachel Thorn @supakaity Ow, wow, this looks like the kind of thing I'm looking for. Thank you so much!
-
Embed this notice
Kaity A ?❤️???️??️⚧ (supakaity@aus.social)'s status on Monday, 14-Nov-2022 13:52:23 JST Kaity A ?❤️???️??️⚧ @Rachel_Thorn Yes, the record option is super flaky. I recommend googling to find other people who've done the hard work for you, like here:
https://apple.stackexchange.com/questions/217148/using-apple-script-to-manage-sound-output-selection
-
Embed this notice