> > I make regular use of the ability to run scripts (of all kinds) from > within BBEdit making sure the shebang line is properly set. I’d like to > take it a step further and pass the contents of the current document to > something else, for example, graphviz. > > ______________________________________________________________________ > > If you just want to pass the *saved file path* you can do something like > this: > > #! /usr/bin/env bash > cat $BB_DOC_PATH; > > Substitute your command for 'cat' (you may need to supply the full path to > the command). >
Chris - this is great. Not as smooth as the native script integration (i.e. having to save the file first instead of using a temp file), but I like the way you think. Searching on $BB_DOC_PATH in the BBEdit help returns a wealth of knowledge... happy Friday to me! -- This is the BBEdit Talk public discussion group. 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]. To post to this group, send email to [email protected].
