opensubscriber
   Find in this group all groups
 
Unknown more information…

a : automator-dev@lists.apple.com 17 January 2006 • 7:06AM -0500

how to read stdin
by Niels Bogaards

REPLY TO AUTHOR
 
REPLY TO GROUP




Hello,

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.

thanks,

Niels
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-dev mailing list      (Automator-dev@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/automator-dev/subscriber%40opensubscriber.com

This email sent to subscriber@open...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.