Hi @menashehertz, using Reusable Named Triggers in BTT, you can define "scripts" that can be used in different places such that it can be called from other "scripts". Reusable Named Triggers in BTT are similar to Macros in KM.
For example, you could create a new Reusable Named Trigger, give it a name, and then assign one of BTT's scripting actions (e.g. Run Real JavaScript, Run AppleScript / JXA, Execute Shell Script) to it. Now you can reference and trigger this action from:
- Any BTT trigger (e.g. Keyboard Shortcut, Trackpad, a Floating Menu, etc.)
- Any script defined in BTT
- Any script defined outside of BTT
I suggest reading the docs as well as these relevant topics:
- Reusable Named Triggers docs: Reusable Named Triggers · GitBook
- Scripting BTT docs: Scripting BetterTouchTool · GitBook
- I feel so dumb but I still can't quite grasp 'Named Triggers' are how to use them.
Hope this helps!