This TouchBar Applescript Widget crashes BTT when run.

Describe the bug
Whenever this is run, BTT Crashes:

{
  "BTTWidgetName" : "Setup Instructions",
  "BTTTriggerType" : 639,
  "BTTTriggerTypeDescription" : "Apple Script Widget",
  "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
  "BTTPredefinedActionType" : 205,
  "BTTPredefinedActionName" : "Open Touch Bar Group With Name",
  "BTTOpenGroupWithName" : "Support Yuuiko!",
  "BTTEnabled2" : 0,
  "BTTUUID" : "8480CAA8-2A01-45F1-8F96-919A5C9E7E0D",
  "BTTEnabled" : 1,
  "BTTModifierMode" : 0,
  "BTTOrder" : 14,
  "BTTDisplayOrder" : 0,
  "BTTMergeIntoTouchBarGroups" : 0,
  "BTTAdditionalActions" : [
    {
      "BTTTriggerType" : -1,
      "BTTTriggerTypeDescription" : "Please Select a Trigger ",
      "BTTTriggerClass" : "BTTTriggerTypeTouchBar",
      "BTTPredefinedActionType" : 195,
      "BTTPredefinedActionName" : "Run Apple Script (async in background)",
      "BTTInlineAppleScript" : "tell application \"BetterTouchTool\" to set_string_variable \"AQT_Read_Setup?\" to \"Yes for 3.4.0\" as string\r",
      "BTTEnabled2" : 1,
      "BTTAlternateModifierKeys" : 0,
      "BTTUUID" : "31C30DB9-61FA-4A96-9F2D-77EB18FCE4D0",
      "BTTEnabled" : 1,
      "BTTModifierMode" : 0,
      "BTTOrder" : 2554,
      "BTTDisplayOrder" : 0,
      "BTTMergeIntoTouchBarGroups" : 0
    }
  ],
  "BTTTriggerConfig" : {
    "BTTTouchBarItemPadding" : 0,
    "BTTTouchBarButtonColor" : "75.323769, 75.323769, 75.323769, 255.000000",
    "BTTTouchBarItemPlacement" : 0,
    "BTTTouchBarAppleScriptStringRunOnInit" : true,
    "BTTTouchBarSliderTriggerPercentage" : 0,
    "BTTTouchBarFontColorAlternate" : null,
    "BTTScriptType" : 0,
    "BTTTouchBarShowRightIconForSlider" : true,
    "BTTTouchBarScriptUpdateInterval" : 2,
    "BTTTouchBarShowLeftIconForSlider" : true,
    "BTTTBDrawKnobWithoutPadding" : false,
    "BTTTouchBarItemIconHeight" : 19,
    "BTTTouchBarSliderDrawKnobBackground" : true,
    "BTTTouchBarAlternateBackgroundColor" : "75.323769, 75.323769, 75.323769, 255.000000",
    "BTTTouchBarAppleScriptUsePath" : 0,
    "BTTTBWidgetWidth" : 200,
    "BTTTouchBarColorRegex" : "^s ",
    "BTTTouchBarItemIconWidth" : 19,
    "BTTTouchBarButtonName" : "Setup Instructions",
    "BTTTouchBarSliderDrawKnobIconWhite" : false,
    "BTTTouchBarFontColor" : null,
    "BTTTouchBarAppleScriptString" : "tell application \"BetterTouchTool\"\r\tset RetrievedVar to get_string_variable \"AQT_Read_Setup\"\n\t\r\tif RetrievedVar is missing value then\r\t\treturn \"Setup Instructions \"\n\t\t\r\telse if RetrievedVar is \"\" then\r\t\treturn \"Setup Instructions \"\n\t\t\r\telse if RetrievedVar is \"Yes for 3.4.0\" then\r\t\treturn \"Setup Instructions\"\n\t\t\r\telse\r\t\treturn \"Setup Instructions\"\r\tend if\rend tell",
    "BTTTouchBarFreeSpaceAfterButton" : 5,
    "BTTTouchBarButtonCornerRadius" : 10
  }
}

Affected input device: TouchBar

Device information:

  • Type of Mac: MacBook Pro (13-inch, 2017, Four Thunderbolt 3 Ports)
  • macOS version: 10.14.4
  • BetterTouchTool version: 2.819

Fixed!

1 Like