Trying to control the new macOS Catalina music with BTT via keyboard shortcut or even better volume slider with the TouchBar, any ideas?
Thanks
Trying to control the new macOS Catalina music with BTT via keyboard shortcut or even better volume slider with the TouchBar, any ideas?
Thanks
For the slider:
Paste this script:
if application "Music" is running then
tell application "Music"
set itunesvolume to sound volume
end tell
set currentvolume to itunesvolume / 100
return currentvolume
else
return " "
end if
--code by @Caliguvara
Give it an Apple Script async in background
on bttWidgetSliderMoved(sliderValue)
if application "Music" is running then
tell application "Music"
try
set the sound volume to sliderValue * 100
end try
end tell
else
end if
end bttWidgetSliderMoved
--code by @Caliguvara
Should be fine
Music Slider.json (30.6 KB)
Hey, sorry but how do I enter all this onto BTT & where?
Thanks again in advance for for your assistance so far.
Easiest way: just download the json attached above and import it to BTT.
Otherwise create a slider widget, assign the first code to its display (the codebox on the right), then make it do the action Apple Script async in background with the second script here.
Find a slider also in my PHoeNiX Preset!
Great, just imported & working fine thanks.