• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Workflow to run shell script on contents of a Finder selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Workflow to run shell script on contents of a Finder selection
      • From: pete boardman <email@hidden>
References: 
 >Workflow to run shell script on contents of a Finder selection (From: peter boardman <email@hidden>)
 >Re: Workflow to run shell script on contents of a Finder selection (From: Steve Hayman <email@hidden>)
 >Re: Workflow to run shell script on contents of a Finder selection (From: Christopher Nebel <email@hidden>)
 >Re: Workflow to run shell script on contents of a Finder selection (From: pete boardman <email@hidden>)
 >Re: Workflow to run shell script on contents of a Finder selection (From: Steve Hayman <email@hidden>)
 >Re: Workflow to run shell script on contents of a Finder selection (From: pete boardman <email@hidden>)

  • Prev by Date: Re: Workflow to run shell script on contents of a Finder selection
  • Next by Date: Re: Workflow to run shell script on contents of a Finder selection
  • Previous by thread: Re: Workflow to run shell script on contents of a Finder selection
  • Next by thread: Re: Workflow to run shell script on contents of a Finder selection
  • Index(es):
    • Date
    • Thread