• 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: 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
  • Follow-Ups:
    • Re: Workflow to run shell script on contents of a Finder selection
      • From: Steve Hayman <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>)

  • 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