Code :
tell application "BetterTouchTool"
if is_app_running "Music" then
tell application "Music"
set position1 to (get player position)
set duration1 to (get duration of the current track)
end tell
set current to position1 / duration1
return current
else
return ""
end if
end tell
on bttWidgetSliderMoved(sliderValue)
tell application "Music"
set duration1 to (get duration of current track)
set player position to (duration1 * sliderValue) - 2
end tell
end bttWidgetSliderMoved
Describe the bug
Slider Widget often No Display Process Bar,Restarted to Normal .
Screenshots
If applicable, add screenshots to help explain your problem. (You can just paste or drag them here)
Device information:
- Type of Mac:
- macOS version: 11.4
- BetterTouchTool version: 3.562