Re: How do I write a Unix filter/script which knows the path to my current document?

2013-04-15 Thread John Delacour
On 14/4/13 at 01:55, john.hor...@gmail.com (jh) wrote: I'd like to be able to run a filter on the document I'm working on. Save the script/filter in ~/Library/Application Support/BBEdit/Text Filters/ Open the Text Filters palette from the Window menu. Optionally set a key short-cut for the

How do I write a Unix filter/script which knows the path to my current document?

2013-04-14 Thread jh
I'd like to be able to run a filter on the document I'm working on. It should be quite simple, as in terminal-command /path/to/file but how do I send it the path? -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this

Re: How do I write a Unix filter/script which knows the path to my current document?

2013-04-14 Thread Neil Faiman
On Apr 14, 2013, at 8:55 PM, jh john.hor...@gmail.com wrote: I'd like to be able to run a filter on the document I'm working on. It should be quite simple, as in terminal-command /path/to/file but how do I send it the path? A filter doesn’t deal with documents at all. A Unix script used

Re: How do I write a Unix filter/script which knows the path to my current document?

2013-04-14 Thread jh
Thanks! Downloading the manual now. On Monday, April 15, 2013 11:20:41 AM UTC+10, Neil Faiman wrote: On Apr 14, 2013, at 8:55 PM, jh john@gmail.com javascript: wrote: I'd like to be able to run a filter on the document I'm working on. It should be quite simple, as in terminal-command

Re: How do I write a Unix filter/script which knows the path to my current document?

2013-04-14 Thread Christopher Stone
On Apr 14, 2013, at 19:55, jh john.hor...@gmail.com wrote: I'd like to be able to run a filter on the document I'm working on. --- #! /usr/bin/env bash sort $@;