On Mar 21, 2011 at 12:57 PM +1100, Charlie Garrison wrote:
What sort of integration is missing? What does Textmate do that BBEdit doesn't? I run unix scripts (perl in my case) from BBEdit every day. Between the Run Script command and worksheets (& filters as you mentioned) I don't feel like I'm missing any functionality.

I'd love to be able to call a Unix script (not a filter) that picks what the active file is and does something with it. I don't mean munge the files contents, but use the open text file as an argument to a command line utility (or whatever else you might do in shell script). Maybe this is a feature that has been added - the last time I checked, scripts were passed no real information about what was going on in the GUI. As far as I know, the only way to do this is to write a wrapper Applescript that calls your Unix script, with any BBEdit interaction takes place in the Applescript layer.

For example, I write a lot of Latex files. I prefer to do that in BBEdit. When it comes time to run the file I'm working on through pdflatex, I can't just write a shell script that uses the active document's file path as an argument while calling pdflatex.

If you are interested in seeing more, CompileTeX is a suite that someone wrote a while back that does exactly this. The core of the interaction with latex is through a shell script, but it has many Applescript bits that call the main shell script with various options.

Another example - what if you wanted to copy the currently open file to a specified location using a shell script (I know you can do this via Applescript). How would you go about doing that with either Unix filters or scripts?

I wish I had more examples ready for you, but over the years I've tried to do various things, ran into this, gave up, and forgotten about them. I will say that I am happy with filters and scripts for 90% of the stuff I do.

Hopefully I'm wrong and this kind of thing can now be done...

--
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>

Reply via email to