Hi,
Until the native feature is present, i would like to share how to put some "little" animated gif as an icon on a widget button...
# Using ImageMagick
# convert animation.gif /tmp/test/target.png
# On Widget set the execution delay on 0.1 and set "show only icon"
tell application "BetterTouchTool"
set numFrames to 10
set startFrame to 0
set basePath to "/tmp/test/"
set baseName to "target-"
set extension to ".png"
# uuid - https://docs.bettertouchtool.net/docs/apple_script.html
set widgetId to "A49899D3-ED6F-4EC5-B9C2-CC0E8E09CDA8"
set varName to "anim-" & baseName & "frame"
try
set frame to ((get_number_variable varName) as integer)
on error
set frame to startFrame
end try
if frame > numFrames then
set frame to startFrame
end if
set_persistent_number_variable varName to frame + 1
set fileName to baseName & (frame as string) & extension
set fullFilePath to basePath & fileName
update_touch_bar_widget widgetId text " " icon_path fullFilePath
end tell
A simple example...