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: Steve Hayman <email@hidden>
- Date: Sat, 15 Oct 2005 11:51:09 -0400
On 15-Oct-05, at 5:08 AM, pete boardman wrote:
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.
Ah, sorry, my mistake, I misread that. Chris's action was
on run {input, parameters}
return input as alias
end run
and for several items, you could change that to something like this
which would produce a list of aliases from one or more input items
on run {input, parameters}
set aliasList to {}
repeat with anItem in (input as list)
set end of aliasList to (anItem as alias)
end repeat
return aliasList
end run
I would be tempted to fire up Xcode and make a new Applescript
Automator Action called "Convert Files to Aliases" or something, with
this script in it to make it nice and easy to reuse.
_______________________________________________
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