This little utility provides facilities for executing a shell (or other) script via icon-click and drag&drop that are not available otherwise:
The version built for Haiku (download below) is essentially identical in action to the BeOS v1.3, except that the Haiku Terminal doesn't currently have the 'geom' option, so this has been disabled. Internally it uses different paths, so this build won't work on BeOS (nor, of course, will the BeOS version work on Haiku). It now uses HVIF icons in place of the old BeOS bitmap ones [thanks due to Humdinger]. (The 'MakeSetup' package has also been removed, as there are better options these days.)
Xicon's function is unaffected by the arrival of Package Management. However it is now available as an hpkg for installation convenience. (Note that the SETUP script is not used in the hpkg, but there is also a glitch in current Haiku that prevents xicon scripts showing their distinctive icons until you reboot the system.) You can still download the zip and install that wherever convenient if you prefer.
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.)
The BeOS xicon 1.3 is fully compatible with R5, and in fact can take advantage of a feature that has been added to the Terminal in that release: you can now set the dimensions of the Terminal window opened by your script to something other than the default. [Sorry, but this is not an available feature in Haiku's Terminal.] Add a 'geom' attribute that specifies the desired number of columns and rows to your script by giving a shell command like this:
addattr geom 20x10 <script name>The Terminal window for that script will then open with 20 columns and 10 rows.
rmattr geom <script name>]
At the suggestion of Michel Clasquin, here is a variant of the supplied "Convert to xicon script" that makes a "background" script (i.e. one that does not open a Terminal) instead of the more standard type. Use it exactly as you would the other.Here is the zip archive (note that this is a 'raw' zip file -- just the files, no enclosing folder):
Here are a couple of other scripts that were not included in the distribution, but might be useful (both are in the one archive; again 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 email@example.com