On Sep 2, 2007, at 20:05, Ken Tozier wrote:

I'm working on a large suite of PHP/JavaScripts and am documenting them with headerdoc style comments. If possible, I'd like to set up a trigger of some kind that when I save a PHP (or JavaScript) file, it automatically runs the following two commands

headerdoc2html -o Documentation -C *
gatherHeaderDoc Documentation

That way, I wouldn't have to remember to "re-headerdoc" them

Is there a way to attach unix scripts to the BBEdit save action? If so, could someone provide a quick and dirty example?

See user manual chapter 13, page 284 (page 304 in the pdf). It tells you how to attach an applescript to a menu item, and run it before or after the command has completed. The "Do Shell Script" command in applescript provides the glue, or if that fails, you can script the terminal application. Remember that "Do Shell Script" uses a minimal shell, i.e. it uses sh (not bash or tcsh) and a standard path (/usr/ bin, /bin IIRC), you probably have to set your own path. See [1] for details.

Hope this may help,

Maarten

[1] http://developer.apple.com/technotes/tn2002/tn2065.html

--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to