Short: Prints icon Tooltype value to StdOut - cli only - V1.1 Author: A.P. Suggitt, Great Ayton. Uploader: peter apsayton demon co uk (A P Suggitt) Type: util/batch Requires: WB 2.04+ Architecture: m68k-amigaos Purpose: To read Tooltype value from Icon and print value to StdOut so an IconX/XIcon/IconJ script can get it's variable parameters from the icon instead of be in the script it'self or by the use of enviroment variables. Use: The code is pure and can be made Resident, it has the following WB 2.0 Template:- INPUTS Template: TTTool FILE/A,TOOLTYPE,TOOLVALUE,DEFTOOL/S,NOQUOTE/S,NOLINE/S FILE Filename of the File with the Icon to search (note .info not needed) TOOLTYPE the Tooltype keyword to search for TOOLVALUE Specific Value To check for DEFTOOL Output the Default Tool string NOQUOTE Do not put output string within Qoute marks NOLINE Do not output a new line character after the string RESULTS RC=0 If no options given outputs list of all tooltypes RC=0 If the Tooltype exists (and matches TOOLVALUE if given) RC=5 If the Tooltype not found (or not matching TOOLVALUE if given) RC=10 If the required .info file is not found If the Tooltype in the Icon has a value this value is sent to STDOUT whether or not it matches the requested TOOLVALE