This little utility provides a couple of facilities for executing a shell script via icon-click that are not available otherwise:
v1.3 is not much different from previous releases, except for the addition of a 'Title' facility, slightly expanded documentation, and the inclusion of a Makefile setup package that some may find useful. It will run under any version of BeOS from 4.0 onward. (No effort has been made to keep it compatible with R3, though it would probably still compile on such a system if really needed.)
addattr geom 20x10 <script name>The Terminal window for that script will then open with 20 columns and 10 rows. [Don't try this on earlier versions of Terminal -- the script will fail ("Couldn't find shell"). If this happens, get rid of the attribute with:
rmattr geom <script name>]
Here is the zip archive (note that this is a 'raw' zip file -- just the files, no enclosing folder):
One strips carriage returns from text files containing CR-LF pairs, so that they read cleanly under BeOS (or Unix); it also removes the slew of ctrl-Z characters that are likely to terminate the file. It preserves the original text under the same name but with '_ORIG' appended.
The other does the reverse [perish the thought...!]: it takes a newlines-only file and adds in a carriage-return after each of these. (It doesn't bother about ctrl-Zs.) It doesn't change the original but creates a new file of the same name with '_CRLF' appended.
Both try to do the 'sensible' thing. If the CR-remover doesn't find any, it just leaves the file alone (no 'original'). The other doesn't add extra CRs where they already terminate the line. Hope they're to your liking. [If not... change 'em!]
If you have any generally useful scripts, let me know and I'll put them here as well (with credit, of course...).
Pete Goodeve
Berkeley, California
e-mail: pete@GoodeveCa.NET
pete.goodeve@computer.org