Current Situation
MacOS Sonoma finally allows creating progressive web apps with Safari. I can save any web app to the Doc using the menu item "File > Add to Dock".
I've made me a BTT trigger that fires when I click on a link to a Jira ticket in Notion. With this trigger, when I click a link in Notion, the URL opens in the Jira web app instead of Safari, which is what I want.
I'm using the trigger "Did Open URL" to trigger an "Open URL" action.
In the URL field, I entered {BTT_OPENED_URL}
.
In the "Use Browser" dropdown, I selected "Custom Open Command".
In the text field for the open command, I've entered:
/usr/bin/open -b com.apple.Safari.WebApp.98FFAE05-5E10-4098-85FB-F3429EE2D431 {url}
The string com.apple.Safari.WebApp.98FFAE05-5E10-4098-85FB-F3429EE2D431
ist the "browser", i.e. the Jira web app I've created when I saved the Jira page to the dock.
Like I said, this works like a charm.
Feature Request
I stored the string com.apple.Safari.WebApp.98FFAE05-5E10-4098-85FB-F3429EE2D431
in a persistent variable PWA_ID_JIRA
to use in my action.
I've tried it like this:
/usr/bin/open -b {PWA_ID_JIRA} {url}
…but this does not work, unfortunately. It seems that currently, in the custom open command, only the variable {url}
is resolved.
Please make it so that any temporary or persistent variable can be used here.