In Automator, you can create a "Quick Action" workflow that is supposed to pass the currently selected text and enable you to replace it. In practice, however, in Big Sur (at least) I could not get this workflow to receive text from any application. Given a standard
run() function, the
input array was always of length 0.
How do I create a workflow that may be executed by a custom command in voice control that receives, processes, and replaces the currently selected text in the current application?