SaveState 1.02 (30 Oct 2020)  nemo 2020

Restores the RISC OS 2/3 functionality of saving a Desktop configuration file.

  Takes its filename from SaveDesk$File if defined
  Labels each section of output with the application name
  Asks compatible modules to include their state
  Includes memory configuration commands as is traditional

Although Desktop files have been somewhat superceded by the ubiquitous !Boot
directory, they are still useful  especially for creating a workspace for
different projects.

You can save the Desktop state to a text editor, remove the commands you don't
need, leaving the commands to run specific programs, open Filer windows, and
ensure particular modules are loaded. Store the result with your project name
and you can instantly get to work (after a crash!).

You can add Filer_CloseDir commands to close all other Filer windows if you
wish. For example, if you have two ADFS drives, Foo and Bar, then these two
commands will close all ADFS Filer windows:

 *Filer_CloseDir adfs::Foo
 *Filer_CloseDir adfs::Bar

Also note that while a Desktop file is being executed, Desktop$File holds its
pathname.

The main difference between a Desktop file and an Obey file is that commands
in a Desktop file are executed by Wimp_StartTask, whereas an Obey file uses
OS_CLI.

nemo