On Apr 14, 2013, at 8:55 PM, jh <[email protected]> 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 as a filter 
receives the text to be transformed as input (on STDIN) and writes the 
transformed text to STDOUT.

A Unix script receives relevant information from a collection of environment 
variables set by BBEdit before it runs the script. In particular, BB_DOC_PATH 
is the path to the document file for the current document when the script is 
run. You should read the section "Unix Scripting: Perl, Python,Ruby, Shells, 
and more!" starting at page 314 in Chapter 14, ,_BBEdit and the Unix Command 
Line_, of the BBEdit User Manual.

Regards,

        Neil Faiman

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to