In the BTT webview you can easily run Shortcuts from the new Shortcuts App introduced with macOS Monterey. A nice example Shortcut is available here:


The BTT webview provides a function called runAppleShortcut which takes a object as parameter. That object has the properties name and input.

runAppleShortcut({name: 'the name of the shortcut', input: 'some optional input for the shortcut'});

If you want to provide multiple files as input, please separate them with two semicolons. For example

runAppleShortcut({name: 'multi-file-test', input: '~/Downloads/test1.png;;~/Downloads/test2.png'});

<button id="testButton" onclick="runAppleShortcut({name: 'Some Nice Shortcut', input: 'optional input for the shortcut'})">Run Some Nice Shortcut</button>

results matching ""

    No results matching ""