Selecting JXA list items causes the app to stop responding

Create any trigger, then selected AppleScript, then JXA. The app froze. I didn’t enter anything. You have to force-quit first, then reopen it before you can start using it.

By the way, it's written as JAX in the menu.


Device information:

  • Type of Mac: MacBook Pro M1
  • macOS version: 15.7.1
  • BetterTouchTool version: 5.686

I wasn't able to reproduce the crash. Regarding the JXA typo, I thought Andreas fixed it before. Typo in JavaScript For Automation – `JXA` ✅ `JAX` ❌.


I deleted a few characters in the code area while taking the screenshot just now. It crashed again.

I think there is a relatively new issue with the system script view, where it seems to require a mutable string but the interface says it wants a non-mutable one. I have added some extra checks in 5.689 that should prevent this. (uploading)


Just updated to 5.689—after creating a new one, as soon as I click...

Strange, I tried it on my macOS 15 and 26 machines but it is working fine here.
Can you take a sample of that process via activity monitor or via this terminal command?

sample BetterTouchTool > ~/Desktop/btt-sample.txt

Do your Apple Scripts work in general, e.g. via Script Editor? (Because there has been a user whose whole Apple Script infrastructure on macOS was broken after upgrading to 15.7.1 )

btt-sample.txt (342.0 KB)

The script runs without any issues, whether in BTT or through Script Editor.

That sample seems to indicate some recursion caused by the action assigned to a "Move Mouse To Top Right Corner" trigger in the "Automations, Named & Other Triggers" section. Do you have such a trigger configured?

Ah, I do have such a trigger to open Bloom’s floating file manager(Hyperkey+;)

It seems the problem started right here.

After I disabled it, it seems the crashes stopped.

Weird. Could you copy & paste that trigger here?

[
  {
    "BTTLastUpdatedAt" : 1759763474.7717361,
    "BTTTriggerType" : 612,
    "BTTTriggerTypeDescriptionReadOnly" : "Move Mouse To Bottom Right Corner",
    "BTTTriggerClass" : "BTTTriggerTypeOtherTriggers",
    "BTTUUID" : "E18DD632-DDC6-4AE4-B71D-AB40E140CD1C",
    "BTTDelayBeforeTriggering" : 0,
    "BTTEnabled2" : 0,
    "BTTOrder" : 55,
    "BTTActionsToExecute" : [
      {
        "BTTLastUpdatedAt" : 1758581261.9044619,
        "BTTTriggerParentUUID" : "E18DD632-DDC6-4AE4-B71D-AB40E140CD1C",
        "BTTIsPureAction" : true,
        "BTTTriggerClass" : "BTTTriggerTypeOtherTriggers",
        "BTTUUID" : "4A84A906-9729-4227-8AE2-44BFBA284FE8",
        "BTTLayoutIndependentActionChar" : ";",
        "BTTShortcutToSend" : "59,58,56,55,41",
        "BTTOrder" : 460
      }
    ]
  }
]

Is it the top-right corner? I just restarted BTT, and then creating a new JXA crashed again. I only have "Move Mouse To Bottom Right Corner".

It's hard to tell from the sample. However in any case that should only ever have an effect if your mouse moves to the corner of the screen.

Maybe also check in BTT's "Recently Used" section if there is anything weird.

By the way, although it crashes during creation, after restarting, as long as it doesn't crash again, it runs fine from then on.

It may also crash during editing.

I have a global "Specific App Did Activate" trigger that might be the factor. It's used to switch the input method to abc.

// Unfortunately, I deleted it and the crash can still be reproduced.

Now I know the more specific triggers:
First scenario: when switching to JXA, the editor area is blank—there’s no “#Insert script code here” placeholder. The text only appears after you move the mouse into the area. If you click too quickly before it shows, BTT freezes and you have to force-quit the app.
Second scenario: as soon as you delete a single character or a whole block of text, BTT sometimes crashes outright instead of freezing.

Going to sleep....