Short: Nice datatype based processfile script Author: rolfrotvel@bigfoot.com Uploader: rolfrotvel bigfoot com Type: util/rexx Replaces: util/rexx/dofile51.lha Requires: WB 3.x (With lots of datatypes) Architecture: m68k-amigaos Dofile recognizes the filetype using datatypes.library and launches the corresponding tool. This enables you to use your favorite viewer/player/editor instead of Multiview and still keep the advantage of the datatypes.library filetype recognition. But Dofile can also recognize files using filename matching. Both datatypes (and filename patterns) can be any AmigaDOS pattern. This makes it easy to group datatypes together that uses the same viewer. Very useful when installed as a do-it-all appicon in Toolmanager. It's also possible to use Dofile as default tool in Workbench project icons. You can even use a ToolAlias utility to redirect all calls to Dofile. And of course it also works nicely from CLI. Now you only have one global config file to change when you install eg. a new JPEG viewer. Other features: * Changes directory to the datafile directory if possible. Making it easier to load other files in eg. a text viewer. * Handles icons that has no matching file perfectly * Has a SHOWDATATYPE switch that displays the datatype of a file in a requester. * Uses filenotification to reread the prefs file each time you change it * It's possible to set the stacksize of the command * Dofile opens a filerequester if you don't pass it a file as argument. If you pass it a directory it will open the filerequester in that directory. 5.2 - Added SHELL/S and ARGS/F arguments. - Added info on how to show output of commands and how to use Dofile with DiskMasterII. - Updated to rmh.library v6.5. No longer uses c:requestchoice for requesters and some other internal changes. - Pattern matching also works on 'iff' files now. - Reworked the code quite a bit. It doesn't reopen the filerequester if a directory is selected. Requester code is more effecient etc. - Now shows command+stack in all info requesters. Stack shown is either default or from cfgfile. Actual stack used may be higher. - So now SHOWDATATYPE does make Dofile read cfgfile/open Arexx port :-)