It would be very helpful to be able to pass a variable to a named trigger using the URL scheme.
For example, I want to be able to click a link to create a new file for a specific date. If I could write the URL as btt://trigger_named/?trigger_name=OpenDateFile&var=02/02/1967 I could do so easily.
Currently it looks like I would need to first click a link to create a persistent variable, then afterwards click another link to actually run my script.
they are saved in standard BTT variables, so you can e.g. access them via Java Script or Apple Script. (or in other places where variables are supported in BTT, e.g. advanced trigger conditions). What are you trying to do?
It’s not super important. The question arose in the DEVONthink forum if one could use browser-specific URL schemes to open an URL in a particular browser on macOS. Seems that this it not possible except for Edge, because no other browser provides an URL scheme (any longer). So, I started thinking about BTT…
open "btt://trigger_named/?trigger_name=open_in_safari&yourVariableName=https://spiegel.de"
You could of course also add a browser variable like in your example and then have some if conditions in the action sequence, but probably having one named trigger per browser is also fine
open "btt://trigger_named/?trigger_name=open_in_browser&browser=safari&browser_url=https://spiegel.de"