I have a shortcut for an Automator Workflow that runs a python file on a selected text. That is, I highlight a text say "(\alpha)" then press Cmd+Shift+U and it automatically replaces the highlighted string "(\alpha)" to its unicode counterpart "α".
This shortcut works perfectly when I use it on most applications: For example, if I write "(\alpha)" in the address bar in Safari and use this shortcut, it works perfectly.
However, I am unable to use it in Visual Studio Code. I have selected the "any application" toggle in Automator Workflow so I don't think that is the issue. In fact, rarely but sometimes, the shortcut works perfectly in Visual Studio Code on its own but I am not able to get it run consistently.
How can I get the Automator Workflow to receive input from Visual Studio Code?
automatorcommand which can be run from any shell. Would this help?