On Apr 26, 2011 at 09:44 AM -0700, Jake wrote:
Running the unit tests is a single unix command, so I was wondering if
there was a way in BBEdit to have it run a unix command or apple
script after saving a file?
I would look on pages 310-314 in the manual. Attaching scripts to menus
and events is described. You could either attach it to the 'save' menu
command or possible the 'documentDidSave' event.
You might want your script to first check the front most document's
language setting so it only runs on desired documents. I did this at
one point to overload the #!->Run command to send the front document to
different external programs depending on the language. Obj-C went to
Xcode, which was told to build the project. Latex files activated an
script which ran latex on the document, etc. That way I only ever had
to hit cmd-R to run/'compile' my document.
--
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 bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
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 "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>