Shortcuts from the Shortcuts App
In the BTT webview you can run shortcuts from the Shortcuts app, which was introduced with macOS Monterey. You can find a nice example shortcut here: https://community.folivora.ai/t/a-fully-customizable-shortcut-launcher-ui/24422
Example:
The BTT webview provides a function called runAppleShortcut that takes an object as its parameter. That object has the properties name and input.
runAppleShortcut({name: 'the name of the shortcut', input: 'some optional input for the shortcut'});
To pass multiple files as input, separate them with two semicolons. For example:
runAppleShortcut({name: 'multi-file-test', input: '~/Downloads/test1.png;;~/Downloads/test2.png'});
<html>
<body>
<button id="testButton" onclick="runAppleShortcut({name: 'Some Nice Shortcut', input: 'optional input for the shortcut'})">Run Some Nice Shortcut</button>
</body>
</html>