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: Christopher Nebel <email@hidden>
- Date: Thu, 13 Oct 2005 16:44:24 -0700
On Oct 13, 2005, at 8:48 AM, Steve Hayman wrote:
I think you can safely skip that applescript action that converts
the finder's selection to an alias. A workflow like this should work:
Get Selected Finder Items
Run Shell Script
Shell: /bin/bash Pass input: as arguments
for f in "$@"
do
cat "$f"
done
Unfortunately, I'm pretty sure you *do* need that intermediate
AppleScript action, at least as of 10.4.2. Adding this in between
the Get Selected Finder Items and Run Shell Script gives me a
functioning workflow:
Run AppleScript:
on run {input, parameters}
return input as alias
end run
--Chris Nebel
AppleScript and Automator Engineering
_______________________________________________
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