I have an installation of the JSBeautify (basically Tidy for JavaScript) code on my system and I can run it like this on any file:
/usr/local/bin/js-beautify -rd <the filename> so how do I turn it into a BBEdit script, text filter or text factory, such that I can run it and the full path to the frontmost document is sent as that *<the filename> *argument? I can't immediately see a way to have 'full path to the frontmost document' sent to the script. I realise it would only work if the document is saved to disk of course. js-beautify has the option to read from STDIN as well, so can I do that, and have the output piped back in to the current document? -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting here. Follow @bbedit on Twitter: <https://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 view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/f919ddee-e43d-473b-b488-1758e98319ce%40googlegroups.com.
