Search all BTT macros?

Hi, long-time user here. Thanks for so many years of great work!

My problem
I occasionally configure my automations to bounce back and forth between Keyboard Maestro and BTT using kmtrigger:// and btt:// URLs depending on what I'm trying to accomplish. I find as I try to document along the way that I want to somehow jump to or easily navigate to a given BTT macro.

What I've tried

  • The search icon at the bottom left of the window but there are main limitations I'm noticing: 1) The scope is locked to the current view and I can't find a view that displays all macros. 2) The scope also does not return results that are inside folders that are visible in the current view.
  • There are links to trigger automations, of course, but that's not what I'm trying to achieve
  • I've reviewed the AppleScript Dictionary and I see that I can get information about a macro, but no way to reveal it or search for it.

Questions

  1. Since UUIDs are easily found through the right-click menu and through AppleScript, is there a way to use the BTT:// URL scheme to reveal a macro?
  2. I use the excellent BTT plugin for Alfred. If I know the name of the macro I'm looking for I can use this to execute it. Any thoughts on how to incorporate a search/lookup into something like this?

Thanks!

I wonder if the upcoming Show/Choose From List action might help? It's in the current alpha, and will be programmable. Check out the thread here: Prompt with List - #15 by Frank1

if you have the uuid you can use apple script:

tell application "BetterTouchTool" to reveal_element_in_ui THEUUIDHERE

I have not unlocked this in the btt:// url scheme, but will add it with the next version. So starting with 4.686 you can do btt://reveal_element_in_ui/THE_UUID_HERE

Often the "Recently used" section can be helpful to find items

1 Like

That would be amazing! Thank you!

I tried the AppleScript you gave and several variations of it, but Script Editor is telling me that a number can't go after the reveal_element_in_ui identifier.

I'm on v4.643. Is that the problem?

ah you might need to put the uuid in quotes " "

tell application "BetterTouchTool" to reveal_element_in_ui "2D662806-2FF2-43CB-8718-88CC70B0DDE5"

Hmm, nope. Nothing.

do you get an error? Which version of BTT are you on? //edit: ah sorry just saw. I only recently added this function, it might not be in 4.643 unfortunately

In case you are on Setapp - the latest version will be released to setapp late today or tomorrow.

v4.643 - Ah, yes - I'm on SetApp.