Set Browse$Dir <Obey$Dir>
Set Browse$Path <Browse$Dir>.

| Ensure specific versions of Toolbox modules (or later ones)
| are present

RMEnsure Toolbox      1.36 RMLoad System:Modules.Toolbox.Toolbox
RMEnsure Toolbox      1.36 Error The browser requires version 1.36 or later of the Toolbox module
RMEnsure IconBar      1.13 RMLoad System:Modules.Toolbox.IconBar
RMEnsure IconBar      1.13 Error The browser requires version 1.13 or later of the IconBar module
RMEnsure ProgInfo     0.09 RMLoad System:Modules.Toolbox.ProgInfo
RMEnsure ProgInfo     0.09 Error The browser requires version 0.09 or later of the ProgInfo module
RMEnsure Window       1.37 RMLoad System:Modules.Toolbox.Window
RMEnsure Window       1.37 Error The browser requires version 1.37 or later of the Window module
RMEnsure Menu         0.24 RMLoad System:Modules.Toolbox.Menu
RMEnsure Menu         0.24 Error The browser requires version 0.24 or later of the Menu module
RMEnsure ToolAction   0.14 RMLoad System:Modules.Toolbox.ToolAction
RMEnsure ToolAction   0.14 Error The browser requires version 0.14 or later of the ToolAction module

| General requirements where version number doesn't really matter

RMEnsure SaveAs       0.00 RMLoad System:Modules.Toolbox.SaveAs
RMEnsure SaveAs       0.00 Error The browser requires the SaveAs module to start
RMEnsure Scale        0.00 RMLoad System:Modules.Toolbox.Scale
RMEnsure Scale        0.00 Error The browser requires the Scale module to start
RMEnsure PrintDBox    0.00 RMLoad System:Modules.Toolbox.PrintDBox
RMEnsure PrintDBox    0.00 Error The browser requires the PrintDBox module to start

| Important networking modules

RMEnsure URL_Fetcher  0.15 RMLoad System:Modules.Network.URL.URL
RMEnsure URL_Fetcher  0.15 Error The browser requires version 0.15 or later of the URL module
RMEnsure AcornHTTP    0.23 RMLoad System:Modules.Network.URL.HTTP
RMEnsure AcornHTTP    0.23 Error The browser requires version 0.23 or later of the HTTP module
RMEnsure FileFetcher  0.19 RMLoad System:Modules.Network.URL.File
RMEnsure FileFetcher  0.19 Error The browser requires version 0.19 (and only 0.19!) of the File module
RMEnsure FTPFetcher   0.09 RMLoad System:Modules.Network.URL.FTP
RMEnsure FTPFetcher   0.09 Error The browser requires version 0.09 or later of the FTP module

| JPEG support for OS versions without this in SpriteExtend

RMEnsure SpriteExtend 0.99 RMEnsure JPEGMsgs   0.00 RMLoad System:Modules.JPEGMsgs
RMEnsure SpriteExtend 0.99 RMEnsure JPEGRender 0.00 RMLoad System:Modules.JPEGRender

| Get round the 'problematic' last stage of the printer protocol

Set Alias$@PrintType_FF4 "Copy %%0 Printer: ~A ~C ~D F ~L ~N ~P ~Q ~R ~S ~T ~V"

| Routine actions...

IconSprites <Browse$Dir>.!Sprites

Set File$Type_F91 URI
Set File$Type_FAF HTML

Set Alias$@RunType_FAF /<Browse$Dir>.!Run -html %%*0
Set Alias$@RunType_F91 /<Browse$Dir>.!Run -uri %%*0

| And finally, run the application.

WimpSlot -Min 2000K -Max 2000K

%UnSet ChangeFSI$Dir
|Run <Browse$Dir>.!RunImage -debug CMal,CFle %*0 2> Pipe:$.StdErr
Run <Browse$Dir>.!RunImage %*0