From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Hmm.. this is more complicated than I first thought. the commands after the first do not wait until BBEdit finishes writing to run. So, I can try and throw something through fmt, then attach the signatures, but they all execute too soon.


"man bbedit" is your friend.

       -w, --wait
Wait until the file is closed in BBEdit. Normally, the bbedit tool exits immediately after the file arguments are opened in BBEdit. This option applies to both local files and files opened from FTP
            or SFTP servers.

Hmm. The example in the man page shows how to do it for tcsh - that seems way too old ;-)

        export EDITOR="bbedit -w"

would seem to be a nice example for bash et al.

You could make a simple script (bash) that might look like this

        bbedit -t "NNTP POSTING" --new-window -w $1
        fmt -w 72 -m $1 > $1.tmp
        cat $1.tmp `/opt/local/bin/fortune ~/mysigs` >$1
        rm $1.tmp

8)
----------------------------------
Chris Janton  - face at CentosPrime dot COM
Netminder for Opus1.COM



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