Hi there,
I’m trying to create a script to use in better touch tool. I have created an AppleScript fader widget on the Touch Bar and the code I have so far is as follows.
on bttWidgetSliderMoved(sliderValue)
tell application "System Events" to tell process "app"
set tracks_window to title of first window whose title contains "- Tracks"
set frontmost to true
set value of slider 1 of UI element 1 of UI element 1 of group 4 of list 1 of group 2 of window tracks_window to sliderValue * 100
end tell
end bttWidgetSliderMoved
The script works but when I drag the fader on the Touch Bar the slider in the UI takes about 45 seconds to complete the adjustment. Is there a way to speed it up, fewer increments or or adding something on to a get value. It’s a volume fader.
Thanks in advance