Is all of the the following completely feasible?
I want to pass a variable string to a btt:// trigger, possibly like this (see the '&myparam=mystringvalue' parameter at the end of the following URL):
The first action/step I want to take in my trigger is to copy the
mystringvaluestring value to the system (in my case, macOS) clipboard.
For example, if there's some way to run a
bashscript that is fed
mystringvalueas a parameter, I can easily employ macOS's
pbcopy(1)to copy said parameter to the clipboard.
If either of these 2 steps are feasible, how do I implement them?
- An aside: how would this this
mystringvaluestring value be read and accessible in a BTT trigger/action? (This feature may not be needed in my initial use case, as all I need to do is copy the
mystringvalueto the macOS clipboard.)