Describe the bug
Setting an icon via AppleScript for a button resets to without an icon on the latest alpha.
Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):
- Type of Mac: MacBook Pro (13-inch, 2017, Four Thunderbolt 3 Ports)
- macOS version: 10.14.5 (18F132)
- BetterTouchTool version: 3.064
Additional information (e.g. StackTraces, related issues, screenshots, workarounds, etc.):
Switched to 3.05.
Note: Before bug reporting, please make sure you have the latest version of BetterTouchTool and that you have already tried to restart your system :-). If you encounter a crash, please attach a crash log from the macOS Console.app from the "User Diagnostic Reports" section.
set varUUID to "XXX" set colorGREEN to "86, 193, 63, 255" set colorBLUE to "6, 123, 195, 255" set colorRED to "214, 35, 23, 255" set colorYELLOW to "251, 219, 66, 255" set icon1 to "~/Desktop/btt/timingBTT/icons/minus.icns" set icon2 to "~/Desktop/btt/timingBTT/icons/plus.icns" set icon3 to "~/Desktop/btt/timingBTT/icons/complete.icns" tell application "TimingHelper" if not scripting support available then error "Scripting support requires a Timing Expert license. Please contact support via https://timingapp.com/contact to upgrade." end if end tell tell application "TimingHelper" set usageData to get time summary between (current date) and (current date) copy productivity score in usageData to savedResult set answer to (round (savedResult * 100) rounding down) delete usageData tell application "BetterTouchTool" if answer > 0 and answer < 50 then update_touch_bar_widget varUUID background_color colorRED text answer icon_path icon1 else if answer > 50 and answer < 70 then update_touch_bar_widget varUUID background_color colorYELLOW text answer icon_path icon2 else if answer > 70 then update_touch_bar_widget varUUID background_color colorGREEN text answer icon_path icon3 end if end tell end tell