Short: DOS command lists & startup file editor Author: hakke@gmx.de (Andreas Winkler) Uploader: hakke gmx de (Andreas Winkler) Type: util/batch Version: 2.1 Requires: AmigaOS 3.0+, MUI 3.8+ Architecture: m68k-amigaos Kompensator - AmigaDOS scripts with a GUI A small MUI tool that keeps a list of AmigaDOS command lines and runs the selected ones like a script - with a delay and an optional Run for every line, a progress gauge and a Stop button. Build your startup chores, mount-and-assign sequences or tool launchers once, tick the lines you need today, and start them with one click. Two more tabs edit S:Startup-Sequence and S:User-Startup, and keep several copies of each, one of them active. FEATURES: Any number of command lines - add, delete and reorder them with the up/down and delete buttons. Every line has its own checkbox, a delay in seconds (waited before the command starts) and a Run switch that starts the command detached with "Run >NIL:". "Execute selected" runs the ticked lines one after another in a single shell, just like a real script: CD, local variables, If/Else/EndIf, Skip/Lab and Quit all work across lines. The GUI stays usable while the commands run. Progress gauge showing finished lines and percentage, e.g. "3 / 10 (30%)", and the total run time when the job is done, e.g. "Done. (12.34 s)". Unticked lines sit on a dithered backdrop but stay editable, and the line currently executing gets a fill color dither. Stop breaks the running command or delay at once (CTRL-C), skips the rest of the script (CTRL-D). Command output goes to a console window that only opens when there is something to show. Import existing AmigaDOS scripts - Wait and Run lines are turned into delays and Run switches - and export the selected lines as a normal script with the script (s) protection bit set. Plain text config file. Kompensator takes it from a Shell argument, a project icon, the CONFIG ToolType or, by default, PROGDIR:Kompensator.cfg. STARTUP-SEQUENCE AND USER-STARTUP: Each file has its own tab. The left side lists the real file and its copies - every other file in S: whose name contains "Startup-Sequence" (or "User-Startup"), such as Startup-Sequence.bak or Copy_of_User-Startup. The copy that equals the real file is marked "active". Activate copies the selected copy over the real file, after a confirmation. If the real file isn't stored as a copy yet, it is saved as Startup-Sequence.backup first. Duplicate File, Rename and Delete File take the name typed in the Name field ("HD" becomes Startup-Sequence.HD). The right side edits the selected file line by line: select a line, edit it, press Return. Insert, Delete, Duplicate (copies the line below, commented out), Enable/Disable (adds or removes the ";"), and up/down move it. Comment lines are shown in italics. Saving an active copy updates the real file as well. Files are written to a temporary file first and then renamed, keeping protection bits and file comment. Kompensator asks before unsaved changes would be lost. REQUIREMENTS: AmigaOS 3.0 or higher and MUI 3.8 or later. MUI is not included. Kompensator itself is plain 68000 code and runs on any Amiga that runs your MUI version. T: must be available - Kompensator writes its temporary script and a tiny progress helper there, and removes both again. INSTALLATION: Copy the Kompensator drawer to your hard drive and double-click the icon. The config file is created next to the program the first time you click "Save Config". To keep it elsewhere, set the CONFIG ToolType, e.g. CONFIG=S:Kompensator.cfg. Scripts run with "FailAt 21", so a failing command does not stop the lines after it. Add your own FailAt line to change that. ICONS: The program and drawer icons are GlowIcons with a 4 color fallback for OS 3.0/3.1. For MagicWB there is an 8 color set in the MagicWB drawer: copy MagicWB/Kompensator.info over the program icon, and MagicWB/Drawer.info next to the Kompensator drawer, renamed to Kompensator.info. HISTORY: 2.1 - Fix: copies of User-Startup (and Startup-Sequence) named other than . were not listed. Now every file in S: containing the name counts as a copy, long file names included; the list shows full file names. 2.0 - New tabs for S:Startup-Sequence and S:User-Startup: edit them line by line and keep several copies of each, one of them active (Activate, Duplicate File, Rename, Delete File). - Project > Save (Amiga-S) saves on every tab. 1.11 - First Aminet release. Freeware, no warranty - see README.md for full documentation.