Re: Workflow to run shell script on contents of a Finder selection
Re: Workflow to run shell script on contents of a Finder selection
- Subject: Re: Workflow to run shell script on contents of a Finder selection
- From: pete boardman <email@hidden>
- Date: Sat, 15 Oct 2005 10:08:33 +0100
On 14 Oct 2005, at 15:13, Steve Hayman wrote:
What you can do is write a little shell loop to go through all of
the arguments. In the shell, the individual arguments are referred
to as $1, $2, $3 and so on, but the whole set of them is a special
variable, $@. So you can try doing something like this. (the
quotes are important to make this work with files with spaces in
their names!) ...
Thanks, Steve. However, I think the problem is that I can get only
one Finder selection as far as the Run Shell Script action, using
Chris Nebel's AppleScript action. I can't get two or more files to
this point with his action, and I can't get any files to this point
without it.
Once I get a file there, I can run Ruby programs fine! (Although
Automator forgets to save my selected 'shell' - keeps switching back
to 'bash'.)
Thanks
Pete
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden