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):
btt://execute_assigned_actions_for_trigger/?uuid=0B647777-31B5-4530-ABE6-62148AEA8888&shared_secret=xxx&myparam=mystringvalue
-
The first action/step I want to take in my trigger is to copy the
mystringvalue
string value to the system (in my case, macOS) clipboard.For example, if there's some way to run a
bash
script that is fedmystringvalue
as a parameter, I can easily employ macOS'spbcopy(1)
to copy said parameter to the clipboard.
If either of these 2 steps are feasible, how do I implement them?
Additionally:
- An aside: how would this this
mystringvalue
string 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 themystringvalue
to the macOS clipboard.)