• 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: Thu, 13 Oct 2005 17:04:42 +0100

On 13 Oct 2005, at 16:48, Steve Hayman wrote:

On 13-Oct-05, at 11:18 AM, peter boardman wrote:

I'm trying to write a workflow that runs shell scripts on the contents of a Finder-selected text file.

Get Selected Finder Items

Run Shell Script

    Shell: /bin/bash    Pass input: as arguments

    for f in "$@"
    do
        cat "$f"
    done

Hi Steve. Thanks for replying. Sadly none of your examples work here. I'm seeing an empty string or errors (using cat "$1" with quotes gives error no such file/directory. Using Automator 1.0.1 (54).


"Automator - it's harder than it looks!" :-)

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 Weintraub <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>)

  • 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