I'm trying to encapsulate some commandline tools into Automator
action plugins. Where the Run Shell Script action conveniently lets
you choose between stdin and arguments for the script, a custom shell
script plugin only gets stdin. That's not so bad, because with xargs
or while read one should be able to break the input up into
arguments. However, I don't get this to work; all my attempts lead to
the custom action running indefinitely, and a bash and env continuing
even after I quit Automator.
Does anyone have an idea how to get this to work?
I test my action using a workflow consisting of "GetSpecified Finder
Items" > myaction > View Results.