I am trying to use AppCode's External Tools feature as a replacement for the wonderful User Scripts feature which, sadly, Apple withdrew in Xcode 4.
I have a Perl script (tool) which I would like to process either the selected text, or all the text in a file, and replace it with the tool output. My tool expects the text input as stdin and the processed text output is stdout.
How can I route such text to my tool's stdin? The error I'm getting seems to indicate that the selected text is being passed as an unquoted argument, which is not going to work even if I modify my tool to expect that.