while I’m at it, actually, this conversation reminded me to finish the action for Drafts I’d started. https://directory.getdrafts.com/a/1z5
Runs the selected text as a command in Blink Shell. If no text is selected, the whole draft contents will be passed.
drafts://action?data=%7B%22uuid%22:%22136A0623-7B3B-4F7C-A7D5-8531C59EBB3E%22,%22steps%22:%5B%7B%22platforms%22:3,%22data%22:%7B%22script%22:%22%5C/%5C/%20setup%20and%20request%20credentials%5Cr%5Cnlet%20credential%20%3D%20Credential.create(%5C%22Blink%5C%22,%20%5C%22Enter%20your%20local%20Blink%20URL%20Key%20(found%20in%20Settings-%3EX-Callback-URL.)%5C%22);%5Cr%5Cn%5Cr%5Cncredential.addPasswordField(%5C%22key%5C%22,%20%5C%22Blink%20URL%20Key%5C%22);%5Cr%5Cncredential.authorize();%5Cr%5Cn%5Cr%5Cnconst%20key%20%3D%20credential.getValue(%5C%22key%5C%22);%5Cn%5Cndraft.setTemplateTag(%5C%22urlkey%5C%22,%20key);%22,%22allowAsync%22:%22false%22%7D,%22type%22:%22script%22,%22isEnabled%22:true,%22uuid%22:%2298D8ADB2-A4B2-4293-AC30-84E0574C42E7%22%7D,%7B%22platforms%22:1,%22data%22:%7B%22template%22:%22blinkshell:%5C/%5C/run?key%3D%5B%5Burlkey%5D%5D%26cmd%3D%5B%5Bselection%5D%5D%22,%22encodeTags%22:%22true%22,%22useSafari%22:%22false%22%7D,%22type%22:%22url%22,%22isEnabled%22:true,%22uuid%22:%2296776ACB-97FC-4D4E-B9E3-8D6EA7F7269F%22%7D%5D,%22backingPlatforms%22:3,%22shortName%22:%22%22,%22shouldConfirm%22:false,%22disposition%22:0,%22keyCommand%22:%7B%22optionKey%22:false,%22input%22:%22B%22,%22controlKey%22:true,%22commandKey%22:false,%22type%22:%22action%22,%22discoverabilityTitle%22:%22Blink%20Selection%22,%22shiftKey%22:false%7D,%22logLevel%22:1,%22groupDisposition%22:0,%22notificationType%22:2,%22tintColor%22:%22indigo%22,%22actionDescription%22:%22Runs%20the%20selected%20text%20as%20a%20command%20in%20Blink%20Shell.%20If%20no%20text%20is%20selected,%20the%20whole%20draft%20contents%20will%20be%20passed.%22,%22keyUseIcon%22:false,%22icon%22:%22action_url%22,%22visibility%22:96,%22backingIsSeparator%22:false,%22groupUUID%22:%2216A2B316-FD3E-4266-913B-4A343EC3122A%22,%22assignTags%22:%5B%5D,%22name%22:%22Blink%20Selection%22%7D