To use this in Alfred create a new workflow and then create a new action Run Script
and specify osascript (Javascript)
and paste in the below script.
See global-microphone-muteunmute-shortcuts for more context.
To use this in Alfred create a new workflow and then create a new action Run Script
and specify osascript (Javascript)
and paste in the below script.
See global-microphone-muteunmute-shortcuts for more context.
set inputVolume to input volume of (get volume settings) | |
set whatHappened to "" | |
set originalInputVolume to inputVolume | |
if inputVolume <= 25 then | |
set inputVolume to 100 | |
set whatHappened to "❇️" | |
else | |
set inputVolume to 0 | |
set whatHappened to "❌" | |
end if | |
set volume input volume inputVolume | |
return whatHappened & " (was " & originalInputVolume & "%)" |