• 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: Filter Paragraphs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filter Paragraphs


  • Subject: Re: Filter Paragraphs
  • From: Ben Waldie <email@hidden>
  • Date: Tue, 27 Oct 2009 12:08:01 -0400

Gavin,

On Oct 27, 2009, at 10:44 AM, Gavin Stone wrote:

I‘ve been trying to get “Filter Paragraphs” to work, to no avail. I have Automator open a text file and filter paragraphs that that begin with the word “test”. I would like it to pass that filtered information to a new text document, but I get an error.

How does the Filter Paragraphs action work? The description is too simple and doesn’t offer any real advice. Also, the built-in help doesn’t describe the action at all.


I'd need to get a better understanding of your workflow to offer more concrete input. But, to read paragraphs from a file, filter them, and add them to a new text document, your workflow might look something like this...

* Get Specified Finder Items - Or similar action to get the text file.

* Combine Text Files - This action is supposed to be for combining the contents of two text files, but if only one is received as input, then it will read its contents and pass it as output. Another option is to open the file in TextEdit, using the "Open Finder Items" action, and then retrieve the contents of the file with the "Get Contents of TextEdit Document" action. Yet another option is to use a third party action, such as my "Read Text File" action <http://www.automatedworkflows.com/software/automator_actions.html >.

* Filter Paragraphs - Receives the extracted text, filters for the specified criteria, and passes the results as output.

* New TextEdit Document - Creates a document in TextEdit, containing the matching paragraphs received as input.

Hope this makes sense.

-Ben

Ben Waldie
President
Automated Workflows, LLC
484.744.1831
=============================================
  AppleScript * Automator * Workflow Automation
  Products, Training, Custom Development Services
  <http://www.automatedworkflows.com>
  <http://twitter.com/applescriptguru>
=============================================




_______________________________________________ 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:
    • Editing a text file using Applescript and Text Edit or Text Wrangler
      • From: Derek Nugent <email@hidden>
References: 
 >Filter Paragraphs (From: Gavin Stone <email@hidden>)

  • Prev by Date: Help with Automator saving dialog!
  • Next by Date: Re: Help with Automator saving dialog!
  • Previous by thread: Filter Paragraphs
  • Next by thread: Editing a text file using Applescript and Text Edit or Text Wrangler
  • Index(es):
    • Date
    • Thread