Describe the bug
When a applescript runs to update a group of the touchbar. The BTT application fully crashes
Macbook pro 2016 (with touchbar) running 10.14.2 with BTT version: 2.687
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:
- BetterTouchTool version:
Additional information (e.g. StackTraces, related issues, screenshots, workarounds, etc.):
Here is a simple json file that reproduce the crash:
{
"BTTTouchBarButtonName" : "test",
"BTTTriggerType" : 630,
"BTTTriggerTypeDescription" : "Group",
"BTTTriggerClass" : "BTTTriggerTypeTouchBar",
"BTTPredefinedActionType" : -1,
"BTTPredefinedActionName" : "No Action",
"BTTEnabled2" : 1,
"BTTUUID" : "6AE13C6C-CCEF-4348-99FA-1CD5D51EB017",
"BTTEnabled" : 1,
"BTTModifierMode" : 0,
"BTTAlternateModifierKeys" : 0,
"BTTOrder" : 0,
"BTTDisplayOrder" : 0,
"BTTMergeIntoTouchBarGroups" : 0,
"BTTAdditionalActions" : [
{
"BTTTouchBarButtonName" : "Close Group",
"BTTTriggerType" : 629,
"BTTTriggerTypeDescription" : "Touch Bar button",
"BTTTriggerClass" : "BTTTriggerTypeTouchBar",
"BTTPredefinedActionType" : 191,
"BTTPredefinedActionName" : "Close currently open Touch Bar group",
"BTTEnabled2" : 1,
"BTTUUID" : "9B66D335-6B5B-4F0D-81D5-C8FFF3C21F21",
"BTTEnabled" : 1,
"BTTModifierMode" : 0,
"BTTAlternateModifierKeys" : 0,
"BTTOrder" : 0,
"BTTDisplayOrder" : 0,
"BTTMergeIntoTouchBarGroups" : 0,
"BTTIconData" : "Standard Close Icon",
"BTTTriggerConfig" : {
"BTTTBName" : "Close Group",
"BTTTouchBarButtonColor" : "0.000000, 0.000000, 0.000000, 255.000000",
"BTTTouchBarOnlyShowIcon" : true,
"BTTTouchBarItemIconHeight" : 22,
"BTTTouchBarItemIconWidth" : 16
}
},
{
"BTTTouchBarButtonName" : "my first button",
"BTTTriggerType" : 629,
"BTTTriggerTypeDescription" : "Touch Bar button",
"BTTTriggerClass" : "BTTTriggerTypeTouchBar",
"BTTPredefinedActionType" : 195,
"BTTPredefinedActionName" : "Run Apple Script (async in background)",
"BTTInlineAppleScript" : "tell application \"BetterTouchTool4\"\r\t\r\tupdate_trigger \"6AE13C6C-CCEF-4348-99FA-1CD5D51EB017\" json \"{ \\\"BTTTouchBarButtonName\\\" : \\\"test2\\\",\n \\\"BTTTriggerType\\\" : 630,\n \\\"BTTTriggerTypeDescription\\\" : \\\"Group\\\",\n \\\"BTTTriggerClass\\\" : \\\"BTTTriggerTypeTouchBar\\\",\n \\\"BTTPredefinedActionType\\\" : -1,\n \\\"BTTPredefinedActionName\\\" : \\\"No Action\\\",\n \\\"BTTEnabled2\\\" : 1,\n \\\"BTTEnabled\\\" : 1,\n \\\"BTTModifierMode\\\" : 0,\n \\\"BTTAlternateModifierKeys\\\" : 0,\n \\\"BTTOrder\\\" : 0,\n \\\"BTTDisplayOrder\\\" : 0,\n \\\"BTTMergeIntoTouchBarGroups\\\" : 0,\n\\\"BTTAdditionalActions\\\" : [\n {\n \\\"BTTTouchBarButtonName\\\" : \\\"Close Group\\\",\n \\\"BTTTriggerType\\\" : 629,\n \\\"BTTTriggerTypeDescription\\\" : \\\"Touch Bar button\\\",\n \\\"BTTTriggerClass\\\" : \\\"BTTTriggerTypeTouchBar\\\",\n \\\"BTTPredefinedActionType\\\" : 191,\n \\\"BTTPredefinedActionName\\\" : \\\"Close currently open Touch Bar group\\\",\n \\\"BTTEnabled2\\\" : 1,\n \\\"BTTUUID\\\" : \\\"9B66D335-6B5B-4F0D-81D5-C8FFF3C21F21\\\",\n \\\"BTTEnabled\\\" : 1,\n \\\"BTTModifierMode\\\" : 0,\n \\\"BTTAlternateModifierKeys\\\" : 0,\n \\\"BTTOrder\\\" : 0,\n \\\"BTTDisplayOrder\\\" : 0,\n \\\"BTTMergeIntoTouchBarGroups\\\" : 0,\n \\\"BTTIconData\\\" : \\\"Standard Close Icon\\\",\n \\\"BTTTriggerConfig\\\" : {\n \\\"BTTTBName\\\" : \\\"Close Group\\\",\n \\\"BTTTouchBarButtonColor\\\" : \\\"0.000000, 0.000000, 0.000000, 255.000000\\\",\n \\\"BTTTouchBarOnlyShowIcon\\\" : true,\n \\\"BTTTouchBarItemIconHeight\\\" : 22,\n \\\"BTTTouchBarItemIconWidth\\\" : 16\n }\n },\n {\n \\\"BTTTouchBarButtonName\\\" : \\\"my first button\\\",\n \\\"BTTTriggerType\\\" : 629,\n \\\"BTTTriggerTypeDescription\\\" : \\\"Touch Bar button\\\",\n \\\"BTTTriggerClass\\\" : \\\"BTTTriggerTypeTouchBar\\\",\n \\\"BTTPredefinedActionType\\\" : -1,\n \\\"BTTPredefinedActionName\\\" : \\\"No Action\\\",\n \\\"BTTEnabled2\\\" : 1,\n \\\"BTTUUID\\\" : \\\"7A28A1A4-C86E-4343-B257-836E58E38564\\\",\n \\\"BTTEnabled\\\" : 1,\n \\\"BTTModifierMode\\\" : 0,\n \\\"BTTAlternateModifierKeys\\\" : 0,\n \\\"BTTOrder\\\" : 1,\n \\\"BTTDisplayOrder\\\" : 0,\n \\\"BTTMergeIntoTouchBarGroups\\\" : 0\n },\n {\n \\\"BTTTouchBarButtonName\\\" : \\\"my second button\\\",\n \\\"BTTTriggerType\\\" : 629,\n \\\"BTTTriggerTypeDescription\\\" : \\\"Touch Bar button\\\",\n \\\"BTTTriggerClass\\\" : \\\"BTTTriggerTypeTouchBar\\\",\n \\\"BTTPredefinedActionType\\\" : -1,\n \\\"BTTPredefinedActionName\\\" : \\\"No Action\\\",\n \\\"BTTEnabled2\\\" : 1,\n \\\"BTTUUID\\\" : \\\"7A28A1A4-C86E-4343-B257-836E58E38565\\\",\n \\\"BTTEnabled\\\" : 1,\n \\\"BTTModifierMode\\\" : 0,\n \\\"BTTAlternateModifierKeys\\\" : 0,\n \\\"BTTOrder\\\" : 1,\n \\\"BTTDisplayOrder\\\" : 0,\n \\\"BTTMergeIntoTouchBarGroups\\\" : 0\n }\n ]\n}\" \r\t\rend tell",
"BTTEnabled2" : 1,
"BTTUUID" : "7A28A1A4-C86E-4343-B257-836E58E38564",
"BTTEnabled" : 1,
"BTTModifierMode" : 0,
"BTTAlternateModifierKeys" : 0,
"BTTOrder" : 1,
"BTTDisplayOrder" : 0,
"BTTMergeIntoTouchBarGroups" : 0
}
]
}
click on test (open the group), then click on "my first button".
And you will see that BTT is rebooting.
That button runs the following applescript
tell application "BetterTouchTool4"
update_trigger "6AE13C6C-CCEF-4348-99FA-1CD5D51EB017" json "{ \"BTTTouchBarButtonName\" : \"test2\",
\"BTTTriggerType\" : 630,
\"BTTTriggerTypeDescription\" : \"Group\",
\"BTTTriggerClass\" : \"BTTTriggerTypeTouchBar\",
\"BTTPredefinedActionType\" : -1,
\"BTTPredefinedActionName\" : \"No Action\",
\"BTTEnabled2\" : 1,
\"BTTEnabled\" : 1,
\"BTTModifierMode\" : 0,
\"BTTAlternateModifierKeys\" : 0,
\"BTTOrder\" : 0,
\"BTTDisplayOrder\" : 0,
\"BTTMergeIntoTouchBarGroups\" : 0,
\"BTTAdditionalActions\" : [
{
\"BTTTouchBarButtonName\" : \"Close Group\",
\"BTTTriggerType\" : 629,
\"BTTTriggerTypeDescription\" : \"Touch Bar button\",
\"BTTTriggerClass\" : \"BTTTriggerTypeTouchBar\",
\"BTTPredefinedActionType\" : 191,
\"BTTPredefinedActionName\" : \"Close currently open Touch Bar group\",
\"BTTEnabled2\" : 1,
\"BTTUUID\" : \"9B66D335-6B5B-4F0D-81D5-C8FFF3C21F21\",
\"BTTEnabled\" : 1,
\"BTTModifierMode\" : 0,
\"BTTAlternateModifierKeys\" : 0,
\"BTTOrder\" : 0,
\"BTTDisplayOrder\" : 0,
\"BTTMergeIntoTouchBarGroups\" : 0,
\"BTTIconData\" : \"Standard Close Icon\",
\"BTTTriggerConfig\" : {
\"BTTTBName\" : \"Close Group\",
\"BTTTouchBarButtonColor\" : \"0.000000, 0.000000, 0.000000, 255.000000\",
\"BTTTouchBarOnlyShowIcon\" : true,
\"BTTTouchBarItemIconHeight\" : 22,
\"BTTTouchBarItemIconWidth\" : 16
}
},
{
\"BTTTouchBarButtonName\" : \"my first button\",
\"BTTTriggerType\" : 629,
\"BTTTriggerTypeDescription\" : \"Touch Bar button\",
\"BTTTriggerClass\" : \"BTTTriggerTypeTouchBar\",
\"BTTPredefinedActionType\" : -1,
\"BTTPredefinedActionName\" : \"No Action\",
\"BTTEnabled2\" : 1,
\"BTTUUID\" : \"7A28A1A4-C86E-4343-B257-836E58E38564\",
\"BTTEnabled\" : 1,
\"BTTModifierMode\" : 0,
\"BTTAlternateModifierKeys\" : 0,
\"BTTOrder\" : 1,
\"BTTDisplayOrder\" : 0,
\"BTTMergeIntoTouchBarGroups\" : 0
},
{
\"BTTTouchBarButtonName\" : \"my second button\",
\"BTTTriggerType\" : 629,
\"BTTTriggerTypeDescription\" : \"Touch Bar button\",
\"BTTTriggerClass\" : \"BTTTriggerTypeTouchBar\",
\"BTTPredefinedActionType\" : -1,
\"BTTPredefinedActionName\" : \"No Action\",
\"BTTEnabled2\" : 1,
\"BTTUUID\" : \"7A28A1A4-C86E-4343-B257-836E58E38565\",
\"BTTEnabled\" : 1,
\"BTTModifierMode\" : 0,
\"BTTAlternateModifierKeys\" : 0,
\"BTTOrder\" : 1,
\"BTTDisplayOrder\" : 0,
\"BTTMergeIntoTouchBarGroups\" : 0
}
]
}"
end tell
Thanks in advance.
Olivier
PS: This is obviously a test related to this thread: