Home » Archimedes archive » Acorn User » Acorn User - Updated Shareware Collection (1994).adf » Programs » AppEnsure/Docs/AppEnsure

AppEnsure/Docs/AppEnsure

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » Acorn User - Updated Shareware Collection (1994).adf » Programs
Filename: AppEnsure/Docs/AppEnsure
Read OK:
File size: 06F5 bytes
Load address: 0000
Exec address: 0000
File contents
Documentation for *AppEnsure, an application version of "RMEnsure"

Program and documentation are Copyright � Cy Booker, 1993

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Syntax:
        *AppEnsure [-Title] <title> [-Command] <command>

        <title> is the name of the task, as listed in the task
        managers' task display

        <command> is a CLI command that is executed if the specified
        task is not currently active.


Example Usage
=============

        In an Obey file, instead of

                Filer_Run Resources:$.Apps.!Draw

        you'd use

                AppEnsure Draw "Filer_Run Resources:$.Apps.!Draw"


        Ie for each "project" you have an Obey file that loads up
        your editors, various modules, sets up system variables,
        opens filer windows etc. etc.  Without this applet every time
        one of these "project" Obey files is executed a new copy of
        the application(s) would be loaded.


Note
====

        AppEnsure starts up as a (wimp) application if it needs to
        execute the command --- but immediately commits suicide.  Thus
        you can't use this from inside a (non-wimp) application!



Updates
=======

        12-Jun-1993 CJB First attempt, failed miserably
        20-Jun-1993 CJB Now fully functional



Author
======

        Any comments / feedback most welcome.

                        Mr. Cy J. Booker
                        86 Church View
                        Main Road
                        Crockenhill
                        Swanley
                        Kent
                        BR8 8JW
                        U.K.
00000000  44 6f 63 75 6d 65 6e 74  61 74 69 6f 6e 20 66 6f  |Documentation fo|
00000010  72 20 2a 41 70 70 45 6e  73 75 72 65 2c 20 61 6e  |r *AppEnsure, an|
00000020  20 61 70 70 6c 69 63 61  74 69 6f 6e 20 76 65 72  | application ver|
00000030  73 69 6f 6e 20 6f 66 20  22 52 4d 45 6e 73 75 72  |sion of "RMEnsur|
00000040  65 22 0a 0a 50 72 6f 67  72 61 6d 20 61 6e 64 20  |e"..Program and |
00000050  64 6f 63 75 6d 65 6e 74  61 74 69 6f 6e 20 61 72  |documentation ar|
00000060  65 20 43 6f 70 79 72 69  67 68 74 20 a9 20 43 79  |e Copyright . Cy|
00000070  20 42 6f 6f 6b 65 72 2c  20 31 39 39 33 0a 0a 20  | Booker, 1993.. |
00000080  20 20 20 54 68 69 73 20  70 72 6f 67 72 61 6d 20  |   This program |
00000090  69 73 20 64 69 73 74 72  69 62 75 74 65 64 20 69  |is distributed i|
000000a0  6e 20 74 68 65 20 68 6f  70 65 20 74 68 61 74 20  |n the hope that |
000000b0  69 74 20 77 69 6c 6c 20  62 65 20 75 73 65 66 75  |it will be usefu|
000000c0  6c 2c 0a 20 20 20 20 62  75 74 20 57 49 54 48 4f  |l,.    but WITHO|
000000d0  55 54 20 41 4e 59 20 57  41 52 52 41 4e 54 59 3b  |UT ANY WARRANTY;|
000000e0  20 77 69 74 68 6f 75 74  20 65 76 65 6e 20 74 68  | without even th|
000000f0  65 20 69 6d 70 6c 69 65  64 20 77 61 72 72 61 6e  |e implied warran|
00000100  74 79 20 6f 66 0a 20 20  20 20 4d 45 52 43 48 41  |ty of.    MERCHA|
00000110  4e 54 41 42 49 4c 49 54  59 20 6f 72 20 46 49 54  |NTABILITY or FIT|
00000120  4e 45 53 53 20 46 4f 52  20 41 20 50 41 52 54 49  |NESS FOR A PARTI|
00000130  43 55 4c 41 52 20 50 55  52 50 4f 53 45 2e 0a 0a  |CULAR PURPOSE...|
00000140  0a 53 79 6e 74 61 78 3a  0a 20 20 20 20 20 20 20  |.Syntax:.       |
00000150  20 2a 41 70 70 45 6e 73  75 72 65 20 5b 2d 54 69  | *AppEnsure [-Ti|
00000160  74 6c 65 5d 20 3c 74 69  74 6c 65 3e 20 5b 2d 43  |tle] <title> [-C|
00000170  6f 6d 6d 61 6e 64 5d 20  3c 63 6f 6d 6d 61 6e 64  |ommand] <command|
00000180  3e 0a 0a 20 20 20 20 20  20 20 20 3c 74 69 74 6c  |>..        <titl|
00000190  65 3e 20 69 73 20 74 68  65 20 6e 61 6d 65 20 6f  |e> is the name o|
000001a0  66 20 74 68 65 20 74 61  73 6b 2c 20 61 73 20 6c  |f the task, as l|
000001b0  69 73 74 65 64 20 69 6e  20 74 68 65 20 74 61 73  |isted in the tas|
000001c0  6b 0a 20 20 20 20 20 20  20 20 6d 61 6e 61 67 65  |k.        manage|
000001d0  72 73 27 20 74 61 73 6b  20 64 69 73 70 6c 61 79  |rs' task display|
000001e0  0a 0a 20 20 20 20 20 20  20 20 3c 63 6f 6d 6d 61  |..        <comma|
000001f0  6e 64 3e 20 69 73 20 61  20 43 4c 49 20 63 6f 6d  |nd> is a CLI com|
00000200  6d 61 6e 64 20 74 68 61  74 20 69 73 20 65 78 65  |mand that is exe|
00000210  63 75 74 65 64 20 69 66  20 74 68 65 20 73 70 65  |cuted if the spe|
00000220  63 69 66 69 65 64 0a 20  20 20 20 20 20 20 20 74  |cified.        t|
00000230  61 73 6b 20 69 73 20 6e  6f 74 20 63 75 72 72 65  |ask is not curre|
00000240  6e 74 6c 79 20 61 63 74  69 76 65 2e 0a 0a 0a 45  |ntly active....E|
00000250  78 61 6d 70 6c 65 20 55  73 61 67 65 0a 3d 3d 3d  |xample Usage.===|
00000260  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 0a 0a 20 20 20 20  |==========..    |
00000270  20 20 20 20 49 6e 20 61  6e 20 4f 62 65 79 20 66  |    In an Obey f|
00000280  69 6c 65 2c 20 69 6e 73  74 65 61 64 20 6f 66 0a  |ile, instead of.|
00000290  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
000002a0  20 46 69 6c 65 72 5f 52  75 6e 20 52 65 73 6f 75  | Filer_Run Resou|
000002b0  72 63 65 73 3a 24 2e 41  70 70 73 2e 21 44 72 61  |rces:$.Apps.!Dra|
000002c0  77 0a 0a 20 20 20 20 20  20 20 20 79 6f 75 27 64  |w..        you'd|
000002d0  20 75 73 65 0a 0a 20 20  20 20 20 20 20 20 20 20  | use..          |
000002e0  20 20 20 20 20 20 41 70  70 45 6e 73 75 72 65 20  |      AppEnsure |
000002f0  44 72 61 77 20 22 46 69  6c 65 72 5f 52 75 6e 20  |Draw "Filer_Run |
00000300  52 65 73 6f 75 72 63 65  73 3a 24 2e 41 70 70 73  |Resources:$.Apps|
00000310  2e 21 44 72 61 77 22 0a  0a 0a 20 20 20 20 20 20  |.!Draw"...      |
00000320  20 20 49 65 20 66 6f 72  20 65 61 63 68 20 22 70  |  Ie for each "p|
00000330  72 6f 6a 65 63 74 22 20  79 6f 75 20 68 61 76 65  |roject" you have|
00000340  20 61 6e 20 4f 62 65 79  20 66 69 6c 65 20 74 68  | an Obey file th|
00000350  61 74 20 6c 6f 61 64 73  20 75 70 0a 20 20 20 20  |at loads up.    |
00000360  20 20 20 20 79 6f 75 72  20 65 64 69 74 6f 72 73  |    your editors|
00000370  2c 20 76 61 72 69 6f 75  73 20 6d 6f 64 75 6c 65  |, various module|
00000380  73 2c 20 73 65 74 73 20  75 70 20 73 79 73 74 65  |s, sets up syste|
00000390  6d 20 76 61 72 69 61 62  6c 65 73 2c 0a 20 20 20  |m variables,.   |
000003a0  20 20 20 20 20 6f 70 65  6e 73 20 66 69 6c 65 72  |     opens filer|
000003b0  20 77 69 6e 64 6f 77 73  20 65 74 63 2e 20 65 74  | windows etc. et|
000003c0  63 2e 20 20 57 69 74 68  6f 75 74 20 74 68 69 73  |c.  Without this|
000003d0  20 61 70 70 6c 65 74 20  65 76 65 72 79 20 74 69  | applet every ti|
000003e0  6d 65 0a 20 20 20 20 20  20 20 20 6f 6e 65 20 6f  |me.        one o|
000003f0  66 20 74 68 65 73 65 20  22 70 72 6f 6a 65 63 74  |f these "project|
00000400  22 20 4f 62 65 79 20 66  69 6c 65 73 20 69 73 20  |" Obey files is |
00000410  65 78 65 63 75 74 65 64  20 61 20 6e 65 77 20 63  |executed a new c|
00000420  6f 70 79 20 6f 66 0a 20  20 20 20 20 20 20 20 74  |opy of.        t|
00000430  68 65 20 61 70 70 6c 69  63 61 74 69 6f 6e 28 73  |he application(s|
00000440  29 20 77 6f 75 6c 64 20  62 65 20 6c 6f 61 64 65  |) would be loade|
00000450  64 2e 0a 0a 0a 4e 6f 74  65 0a 3d 3d 3d 3d 0a 0a  |d....Note.====..|
00000460  20 20 20 20 20 20 20 20  41 70 70 45 6e 73 75 72  |        AppEnsur|
00000470  65 20 73 74 61 72 74 73  20 75 70 20 61 73 20 61  |e starts up as a|
00000480  20 28 77 69 6d 70 29 20  61 70 70 6c 69 63 61 74  | (wimp) applicat|
00000490  69 6f 6e 20 69 66 20 69  74 20 6e 65 65 64 73 20  |ion if it needs |
000004a0  74 6f 0a 20 20 20 20 20  20 20 20 65 78 65 63 75  |to.        execu|
000004b0  74 65 20 74 68 65 20 63  6f 6d 6d 61 6e 64 20 2d  |te the command -|
000004c0  2d 2d 20 62 75 74 20 69  6d 6d 65 64 69 61 74 65  |-- but immediate|
000004d0  6c 79 20 63 6f 6d 6d 69  74 73 20 73 75 69 63 69  |ly commits suici|
000004e0  64 65 2e 20 20 54 68 75  73 0a 20 20 20 20 20 20  |de.  Thus.      |
000004f0  20 20 79 6f 75 20 63 61  6e 27 74 20 75 73 65 20  |  you can't use |
00000500  74 68 69 73 20 66 72 6f  6d 20 69 6e 73 69 64 65  |this from inside|
00000510  20 61 20 28 6e 6f 6e 2d  77 69 6d 70 29 20 61 70  | a (non-wimp) ap|
00000520  70 6c 69 63 61 74 69 6f  6e 21 0a 0a 0a 0a 55 70  |plication!....Up|
00000530  64 61 74 65 73 0a 3d 3d  3d 3d 3d 3d 3d 0a 0a 20  |dates.=======.. |
00000540  20 20 20 20 20 20 20 31  32 2d 4a 75 6e 2d 31 39  |       12-Jun-19|
00000550  39 33 20 43 4a 42 20 46  69 72 73 74 20 61 74 74  |93 CJB First att|
00000560  65 6d 70 74 2c 20 66 61  69 6c 65 64 20 6d 69 73  |empt, failed mis|
00000570  65 72 61 62 6c 79 0a 20  20 20 20 20 20 20 20 32  |erably.        2|
00000580  30 2d 4a 75 6e 2d 31 39  39 33 20 43 4a 42 20 4e  |0-Jun-1993 CJB N|
00000590  6f 77 20 66 75 6c 6c 79  20 66 75 6e 63 74 69 6f  |ow fully functio|
000005a0  6e 61 6c 0a 0a 0a 0a 41  75 74 68 6f 72 0a 3d 3d  |nal....Author.==|
000005b0  3d 3d 3d 3d 0a 0a 20 20  20 20 20 20 20 20 41 6e  |====..        An|
000005c0  79 20 63 6f 6d 6d 65 6e  74 73 20 2f 20 66 65 65  |y comments / fee|
000005d0  64 62 61 63 6b 20 6d 6f  73 74 20 77 65 6c 63 6f  |dback most welco|
000005e0  6d 65 2e 0a 0a 20 20 20  20 20 20 20 20 20 20 20  |me...           |
000005f0  20 20 20 20 20 20 20 20  20 20 20 20 20 4d 72 2e  |             Mr.|
00000600  20 43 79 20 4a 2e 20 42  6f 6f 6b 65 72 0a 20 20  | Cy J. Booker.  |
00000610  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000620  20 20 20 20 20 20 38 36  20 43 68 75 72 63 68 20  |      86 Church |
00000630  56 69 65 77 0a 20 20 20  20 20 20 20 20 20 20 20  |View.           |
00000640  20 20 20 20 20 20 20 20  20 20 20 20 20 4d 61 69  |             Mai|
00000650  6e 20 52 6f 61 64 0a 20  20 20 20 20 20 20 20 20  |n Road.         |
00000660  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 43  |               C|
00000670  72 6f 63 6b 65 6e 68 69  6c 6c 0a 20 20 20 20 20  |rockenhill.     |
00000680  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000690  20 20 20 53 77 61 6e 6c  65 79 0a 20 20 20 20 20  |   Swanley.     |
000006a0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000006b0  20 20 20 4b 65 6e 74 0a  20 20 20 20 20 20 20 20  |   Kent.        |
000006c0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000006d0  42 52 38 20 38 4a 57 0a  20 20 20 20 20 20 20 20  |BR8 8JW.        |
000006e0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000006f0  55 2e 4b 2e 0a                                    |U.K..|
000006f5