• 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
Workflow to run shell script on contents of a Finder selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Workflow to run shell script on contents of a Finder selection


  • Subject: Workflow to run shell script on contents of a Finder selection
  • From: peter boardman <email@hidden>
  • Date: Thu, 13 Oct 2005 16:18:32 +0100

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

I've inserted a Run AppleScript action that converts the output of the Get Finder Selection from a Finder object to an alias (which might not be necessary but looks like it might be), and I'm feeding this to a Run Shell Script.

The only thing I can get out of the Run Shell Script action is the name of the file. For example, if I choose /bin/bash and use 'cat' (on stdin), I just see the name of the file, although I'd be expecting the file's contents.

Can anyone point me to a workflow somewhere that has successfully got the contents of a file using any type of shell script?

ta

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>
  • Next by Date: 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