Home » Archimedes archive » Acorn User » AU 1997-08 B.adf » Regulars » starinfo/Hayward/Instruct
starinfo/Hayward/Instruct
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 » AU 1997-08 B.adf » Regulars |
Filename: | starinfo/Hayward/Instruct |
Read OK: | ✔ |
File size: | 1389 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
Magic version 1.00 Magic is a tool for determining the type of files to a finer degree than Risc OS file types. Apart from being able to identify and set the filetype of files from their contents, it is also able to do this redirect files to programs as you double click on them. Magic was first inspired by a program called !Switcher by David Higton, and by the Unix file command. Switcher intercepts any double clicks on text files and tests them to see if they contain bulletin board messages. If they do, the file is passed on to my own OLRead for viewing, otherwise it carries on as normal and ends up in a text editor. Note that for this to work correctly it must be loaded fairly early on, eg on boot up, or at least before any other programs which may load text files although this can still fail if such a program is later run, especially if you have loaded and quit applications in the mean time. The Unix 'file' command identifies file types by looking at there contents, essential on an operating system which has no built in file type system. It looks for so called 'magic numbers', often at the start of files, and analyses the file in various other ways to determine the contents. To do this it looks in the file /etc/magic which contains enough inforation to determine most file's type by looking for magic numbers. Magic uses a similar system and a similar file format, but it has extended the file's format in various ways - see the 'MagicForm' file for details. This means that rather than being limited to a few hard coded file formats, Magic can be extended to detect files of many types. A default magic file is supplied to detect many types encountered in Risc OS and elsewhere. Once Magic is loaded you can attempt to identify a file by dragging it to its icon bar icon. If this is successful a window will open contain a description of the file type and enabling you to set its Risc OS filetype to one of those set in the main editing window (see below). To open the main editing window click on the icon bar icon. The currently selected file type name appears at the top of the window and this can be set with the pop-up menu. The 'Set to Risc OS filetype' option, if turned on, enables you to specify a file type (either a textual name such as 'Text' or hex value such as 'fff') to which Magic will set any files of that type when they are double clicked on. Setting the 'Only check files of Risc OS filetype' enables you to create a list of filtyepes which should be checked to see if they are of the textual type displayed at the top of the window. To add an entry use the writable entry in the adjacent pop-up menu, and to delete one select it in the menu and click on 'Remove'. In a similar way the names of tasks and commands can be added to this textual file type. Note that task names must be typed *exactly* the same way as they are shown in the Task Manager. When a file of this type is double clicked on Magic first checks to see if any of the named tasks are loaded. If one is found the file is sent directly to it. If no tasks are found then Magic will attempt to run each command listed in order until one succeeds. If this fails then things carry on as if Magic was not loaded (after setting the file type, if this option was enabled). Holding down shift will only set the type of the file, and not attempt to run any commands or send it to any tasks - this is so that you can load the file in to a text editor easily if you wish. Holding down control will prevent Magic from doing anything at all. Commands are typically of the form <App$Dir>.!Run %s where App is the name of the program, which must have been seen by the filer for the command to succesfully run. You can enter an absolute pathname if you wish, but this will fail if the program moves. The %s at the end is replaced by the pathname of the file to be loaded (I can imagine some C programmers out there smiling right now...). Changes normally take immediate effect but will not be permanent until you click on Save. The Reload button should be used if you wish to discard any changes and revert to the original saved file, and should also be used if you edit the magic file directly. Note that when a very large number of file types are present in the database the file type menu can take a short while to appear (due to Risc OS). If you have limited memory you may wish to edit the magic file by hand and comment out many file types which you do not think you will require. A second magic file is provided, 'BSDMagic', which contains the full set of filetypes in the original NetBSD magic file. This file is slightly modified to use the extra syntax of !Magic in order to avoid many duplicate menu entries. This file does NOT contain many of the Acorn file formats in the original magic file, and you may wish to add these by hand with a text editor. You may need to delete the file 'tricks' inside !Magic for Magic to notice the changed file (which may have an earlier date).
00000000 4d 61 67 69 63 20 76 65 72 73 69 6f 6e 20 31 2e |Magic version 1.| 00000010 30 30 0a 0a 4d 61 67 69 63 20 69 73 20 61 20 74 |00..Magic is a t| 00000020 6f 6f 6c 20 66 6f 72 20 64 65 74 65 72 6d 69 6e |ool for determin| 00000030 69 6e 67 20 74 68 65 20 74 79 70 65 20 6f 66 20 |ing the type of | 00000040 66 69 6c 65 73 20 74 6f 20 61 20 66 69 6e 65 72 |files to a finer| 00000050 20 64 65 67 72 65 65 20 74 68 61 6e 20 52 69 73 | degree than Ris| 00000060 63 0a 4f 53 20 66 69 6c 65 20 74 79 70 65 73 2e |c.OS file types.| 00000070 20 41 70 61 72 74 20 66 72 6f 6d 20 62 65 69 6e | Apart from bein| 00000080 67 20 61 62 6c 65 20 74 6f 20 69 64 65 6e 74 69 |g able to identi| 00000090 66 79 20 61 6e 64 20 73 65 74 20 74 68 65 20 66 |fy and set the f| 000000a0 69 6c 65 74 79 70 65 20 6f 66 0a 66 69 6c 65 73 |iletype of.files| 000000b0 20 66 72 6f 6d 20 74 68 65 69 72 20 63 6f 6e 74 | from their cont| 000000c0 65 6e 74 73 2c 20 69 74 20 69 73 20 61 6c 73 6f |ents, it is also| 000000d0 20 61 62 6c 65 20 74 6f 20 64 6f 20 74 68 69 73 | able to do this| 000000e0 20 72 65 64 69 72 65 63 74 20 66 69 6c 65 73 20 | redirect files | 000000f0 74 6f 0a 70 72 6f 67 72 61 6d 73 20 61 73 20 79 |to.programs as y| 00000100 6f 75 20 64 6f 75 62 6c 65 20 63 6c 69 63 6b 20 |ou double click | 00000110 6f 6e 20 74 68 65 6d 2e 0a 0a 4d 61 67 69 63 20 |on them...Magic | 00000120 77 61 73 20 66 69 72 73 74 20 69 6e 73 70 69 72 |was first inspir| 00000130 65 64 20 62 79 20 61 20 70 72 6f 67 72 61 6d 20 |ed by a program | 00000140 63 61 6c 6c 65 64 20 21 53 77 69 74 63 68 65 72 |called !Switcher| 00000150 20 62 79 20 44 61 76 69 64 20 48 69 67 74 6f 6e | by David Higton| 00000160 2c 20 61 6e 64 0a 62 79 20 74 68 65 20 55 6e 69 |, and.by the Uni| 00000170 78 20 66 69 6c 65 20 63 6f 6d 6d 61 6e 64 2e 20 |x file command. | 00000180 53 77 69 74 63 68 65 72 20 69 6e 74 65 72 63 65 |Switcher interce| 00000190 70 74 73 20 61 6e 79 20 64 6f 75 62 6c 65 20 63 |pts any double c| 000001a0 6c 69 63 6b 73 20 6f 6e 20 74 65 78 74 20 66 69 |licks on text fi| 000001b0 6c 65 73 0a 61 6e 64 20 74 65 73 74 73 20 74 68 |les.and tests th| 000001c0 65 6d 20 74 6f 20 73 65 65 20 69 66 20 74 68 65 |em to see if the| 000001d0 79 20 63 6f 6e 74 61 69 6e 20 62 75 6c 6c 65 74 |y contain bullet| 000001e0 69 6e 20 62 6f 61 72 64 20 6d 65 73 73 61 67 65 |in board message| 000001f0 73 2e 20 49 66 20 74 68 65 79 20 64 6f 2c 0a 74 |s. If they do,.t| 00000200 68 65 20 66 69 6c 65 20 69 73 20 70 61 73 73 65 |he file is passe| 00000210 64 20 6f 6e 20 74 6f 20 6d 79 20 6f 77 6e 20 4f |d on to my own O| 00000220 4c 52 65 61 64 20 66 6f 72 20 76 69 65 77 69 6e |LRead for viewin| 00000230 67 2c 20 6f 74 68 65 72 77 69 73 65 20 69 74 20 |g, otherwise it | 00000240 63 61 72 72 69 65 73 20 6f 6e 0a 61 73 20 6e 6f |carries on.as no| 00000250 72 6d 61 6c 20 61 6e 64 20 65 6e 64 73 20 75 70 |rmal and ends up| 00000260 20 69 6e 20 61 20 74 65 78 74 20 65 64 69 74 6f | in a text edito| 00000270 72 2e 20 4e 6f 74 65 20 74 68 61 74 20 66 6f 72 |r. Note that for| 00000280 20 74 68 69 73 20 74 6f 20 77 6f 72 6b 20 63 6f | this to work co| 00000290 72 72 65 63 74 6c 79 0a 69 74 20 6d 75 73 74 20 |rrectly.it must | 000002a0 62 65 20 6c 6f 61 64 65 64 20 66 61 69 72 6c 79 |be loaded fairly| 000002b0 20 65 61 72 6c 79 20 6f 6e 2c 20 65 67 20 6f 6e | early on, eg on| 000002c0 20 62 6f 6f 74 20 75 70 2c 20 6f 72 20 61 74 20 | boot up, or at | 000002d0 6c 65 61 73 74 20 62 65 66 6f 72 65 20 61 6e 79 |least before any| 000002e0 0a 6f 74 68 65 72 20 70 72 6f 67 72 61 6d 73 20 |.other programs | 000002f0 77 68 69 63 68 20 6d 61 79 20 6c 6f 61 64 20 74 |which may load t| 00000300 65 78 74 20 66 69 6c 65 73 20 61 6c 74 68 6f 75 |ext files althou| 00000310 67 68 20 74 68 69 73 20 63 61 6e 20 73 74 69 6c |gh this can stil| 00000320 6c 20 66 61 69 6c 20 69 66 20 73 75 63 68 0a 61 |l fail if such.a| 00000330 20 70 72 6f 67 72 61 6d 20 69 73 20 6c 61 74 65 | program is late| 00000340 72 20 72 75 6e 2c 20 65 73 70 65 63 69 61 6c 6c |r run, especiall| 00000350 79 20 69 66 20 79 6f 75 20 68 61 76 65 20 6c 6f |y if you have lo| 00000360 61 64 65 64 20 61 6e 64 20 71 75 69 74 20 61 70 |aded and quit ap| 00000370 70 6c 69 63 61 74 69 6f 6e 73 0a 69 6e 20 74 68 |plications.in th| 00000380 65 20 6d 65 61 6e 20 74 69 6d 65 2e 0a 0a 54 68 |e mean time...Th| 00000390 65 20 55 6e 69 78 20 27 66 69 6c 65 27 20 63 6f |e Unix 'file' co| 000003a0 6d 6d 61 6e 64 20 69 64 65 6e 74 69 66 69 65 73 |mmand identifies| 000003b0 20 66 69 6c 65 20 74 79 70 65 73 20 62 79 20 6c | file types by l| 000003c0 6f 6f 6b 69 6e 67 20 61 74 20 74 68 65 72 65 20 |ooking at there | 000003d0 63 6f 6e 74 65 6e 74 73 2c 0a 65 73 73 65 6e 74 |contents,.essent| 000003e0 69 61 6c 20 6f 6e 20 61 6e 20 6f 70 65 72 61 74 |ial on an operat| 000003f0 69 6e 67 20 73 79 73 74 65 6d 20 77 68 69 63 68 |ing system which| 00000400 20 68 61 73 20 6e 6f 20 62 75 69 6c 74 20 69 6e | has no built in| 00000410 20 66 69 6c 65 20 74 79 70 65 20 73 79 73 74 65 | file type syste| 00000420 6d 2e 20 49 74 0a 6c 6f 6f 6b 73 20 66 6f 72 20 |m. It.looks for | 00000430 73 6f 20 63 61 6c 6c 65 64 20 27 6d 61 67 69 63 |so called 'magic| 00000440 20 6e 75 6d 62 65 72 73 27 2c 20 6f 66 74 65 6e | numbers', often| 00000450 20 61 74 20 74 68 65 20 73 74 61 72 74 20 6f 66 | at the start of| 00000460 20 66 69 6c 65 73 2c 20 61 6e 64 0a 61 6e 61 6c | files, and.anal| 00000470 79 73 65 73 20 74 68 65 20 66 69 6c 65 20 69 6e |yses the file in| 00000480 20 76 61 72 69 6f 75 73 20 6f 74 68 65 72 20 77 | various other w| 00000490 61 79 73 20 74 6f 20 64 65 74 65 72 6d 69 6e 65 |ays to determine| 000004a0 20 74 68 65 20 63 6f 6e 74 65 6e 74 73 2e 20 54 | the contents. T| 000004b0 6f 20 64 6f 20 74 68 69 73 0a 69 74 20 6c 6f 6f |o do this.it loo| 000004c0 6b 73 20 69 6e 20 74 68 65 20 66 69 6c 65 20 2f |ks in the file /| 000004d0 65 74 63 2f 6d 61 67 69 63 20 77 68 69 63 68 20 |etc/magic which | 000004e0 63 6f 6e 74 61 69 6e 73 20 65 6e 6f 75 67 68 20 |contains enough | 000004f0 69 6e 66 6f 72 61 74 69 6f 6e 20 74 6f 20 64 65 |inforation to de| 00000500 74 65 72 6d 69 6e 65 0a 6d 6f 73 74 20 66 69 6c |termine.most fil| 00000510 65 27 73 20 74 79 70 65 20 62 79 20 6c 6f 6f 6b |e's type by look| 00000520 69 6e 67 20 66 6f 72 20 6d 61 67 69 63 20 6e 75 |ing for magic nu| 00000530 6d 62 65 72 73 2e 0a 0a 4d 61 67 69 63 20 75 73 |mbers...Magic us| 00000540 65 73 20 61 20 73 69 6d 69 6c 61 72 20 73 79 73 |es a similar sys| 00000550 74 65 6d 20 61 6e 64 20 61 20 73 69 6d 69 6c 61 |tem and a simila| 00000560 72 20 66 69 6c 65 20 66 6f 72 6d 61 74 2c 20 62 |r file format, b| 00000570 75 74 20 69 74 20 68 61 73 20 65 78 74 65 6e 64 |ut it has extend| 00000580 65 64 0a 74 68 65 20 66 69 6c 65 27 73 20 66 6f |ed.the file's fo| 00000590 72 6d 61 74 20 69 6e 20 76 61 72 69 6f 75 73 20 |rmat in various | 000005a0 77 61 79 73 20 2d 20 73 65 65 20 74 68 65 20 27 |ways - see the '| 000005b0 4d 61 67 69 63 46 6f 72 6d 27 20 66 69 6c 65 20 |MagicForm' file | 000005c0 66 6f 72 20 64 65 74 61 69 6c 73 2e 0a 54 68 69 |for details..Thi| 000005d0 73 20 6d 65 61 6e 73 20 74 68 61 74 20 72 61 74 |s means that rat| 000005e0 68 65 72 20 74 68 61 6e 20 62 65 69 6e 67 20 6c |her than being l| 000005f0 69 6d 69 74 65 64 20 74 6f 20 61 20 66 65 77 20 |imited to a few | 00000600 68 61 72 64 20 63 6f 64 65 64 20 66 69 6c 65 20 |hard coded file | 00000610 66 6f 72 6d 61 74 73 2c 0a 4d 61 67 69 63 20 63 |formats,.Magic c| 00000620 61 6e 20 62 65 20 65 78 74 65 6e 64 65 64 20 74 |an be extended t| 00000630 6f 20 64 65 74 65 63 74 20 66 69 6c 65 73 20 6f |o detect files o| 00000640 66 20 6d 61 6e 79 20 74 79 70 65 73 2e 20 41 20 |f many types. A | 00000650 64 65 66 61 75 6c 74 20 6d 61 67 69 63 20 66 69 |default magic fi| 00000660 6c 65 20 69 73 0a 73 75 70 70 6c 69 65 64 20 74 |le is.supplied t| 00000670 6f 20 64 65 74 65 63 74 20 6d 61 6e 79 20 74 79 |o detect many ty| 00000680 70 65 73 20 65 6e 63 6f 75 6e 74 65 72 65 64 20 |pes encountered | 00000690 69 6e 20 52 69 73 63 20 4f 53 20 61 6e 64 20 65 |in Risc OS and e| 000006a0 6c 73 65 77 68 65 72 65 2e 0a 0a 4f 6e 63 65 20 |lsewhere...Once | 000006b0 4d 61 67 69 63 20 69 73 20 6c 6f 61 64 65 64 20 |Magic is loaded | 000006c0 79 6f 75 20 63 61 6e 20 61 74 74 65 6d 70 74 20 |you can attempt | 000006d0 74 6f 20 69 64 65 6e 74 69 66 79 20 61 20 66 69 |to identify a fi| 000006e0 6c 65 20 62 79 20 64 72 61 67 67 69 6e 67 20 69 |le by dragging i| 000006f0 74 20 74 6f 20 69 74 73 0a 69 63 6f 6e 20 62 61 |t to its.icon ba| 00000700 72 20 69 63 6f 6e 2e 20 49 66 20 74 68 69 73 20 |r icon. If this | 00000710 69 73 20 73 75 63 63 65 73 73 66 75 6c 20 61 20 |is successful a | 00000720 77 69 6e 64 6f 77 20 77 69 6c 6c 20 6f 70 65 6e |window will open| 00000730 20 63 6f 6e 74 61 69 6e 20 61 20 64 65 73 63 72 | contain a descr| 00000740 69 70 74 69 6f 6e 0a 6f 66 20 74 68 65 20 66 69 |iption.of the fi| 00000750 6c 65 20 74 79 70 65 20 61 6e 64 20 65 6e 61 62 |le type and enab| 00000760 6c 69 6e 67 20 79 6f 75 20 74 6f 20 73 65 74 20 |ling you to set | 00000770 69 74 73 20 52 69 73 63 20 4f 53 20 66 69 6c 65 |its Risc OS file| 00000780 74 79 70 65 20 74 6f 20 6f 6e 65 20 6f 66 20 74 |type to one of t| 00000790 68 6f 73 65 0a 73 65 74 20 69 6e 20 74 68 65 20 |hose.set in the | 000007a0 6d 61 69 6e 20 65 64 69 74 69 6e 67 20 77 69 6e |main editing win| 000007b0 64 6f 77 20 28 73 65 65 20 62 65 6c 6f 77 29 2e |dow (see below).| 000007c0 0a 0a 54 6f 20 6f 70 65 6e 20 74 68 65 20 6d 61 |..To open the ma| 000007d0 69 6e 20 65 64 69 74 69 6e 67 20 77 69 6e 64 6f |in editing windo| 000007e0 77 20 63 6c 69 63 6b 20 6f 6e 20 74 68 65 20 69 |w click on the i| 000007f0 63 6f 6e 20 62 61 72 20 69 63 6f 6e 2e 20 54 68 |con bar icon. Th| 00000800 65 20 63 75 72 72 65 6e 74 6c 79 0a 73 65 6c 65 |e currently.sele| 00000810 63 74 65 64 20 66 69 6c 65 20 74 79 70 65 20 6e |cted file type n| 00000820 61 6d 65 20 61 70 70 65 61 72 73 20 61 74 20 74 |ame appears at t| 00000830 68 65 20 74 6f 70 20 6f 66 20 74 68 65 20 77 69 |he top of the wi| 00000840 6e 64 6f 77 20 61 6e 64 20 74 68 69 73 20 63 61 |ndow and this ca| 00000850 6e 20 62 65 20 73 65 74 0a 77 69 74 68 20 74 68 |n be set.with th| 00000860 65 20 70 6f 70 2d 75 70 20 6d 65 6e 75 2e 0a 0a |e pop-up menu...| 00000870 54 68 65 20 27 53 65 74 20 74 6f 20 52 69 73 63 |The 'Set to Risc| 00000880 20 4f 53 20 66 69 6c 65 74 79 70 65 27 20 6f 70 | OS filetype' op| 00000890 74 69 6f 6e 2c 20 69 66 20 74 75 72 6e 65 64 20 |tion, if turned | 000008a0 6f 6e 2c 20 65 6e 61 62 6c 65 73 20 79 6f 75 20 |on, enables you | 000008b0 74 6f 20 73 70 65 63 69 66 79 20 61 0a 66 69 6c |to specify a.fil| 000008c0 65 20 74 79 70 65 20 28 65 69 74 68 65 72 20 61 |e type (either a| 000008d0 20 74 65 78 74 75 61 6c 20 6e 61 6d 65 20 73 75 | textual name su| 000008e0 63 68 20 61 73 20 27 54 65 78 74 27 20 6f 72 20 |ch as 'Text' or | 000008f0 68 65 78 20 76 61 6c 75 65 20 73 75 63 68 20 61 |hex value such a| 00000900 73 20 27 66 66 66 27 29 0a 74 6f 20 77 68 69 63 |s 'fff').to whic| 00000910 68 20 4d 61 67 69 63 20 77 69 6c 6c 20 73 65 74 |h Magic will set| 00000920 20 61 6e 79 20 66 69 6c 65 73 20 6f 66 20 74 68 | any files of th| 00000930 61 74 20 74 79 70 65 20 77 68 65 6e 20 74 68 65 |at type when the| 00000940 79 20 61 72 65 20 64 6f 75 62 6c 65 20 63 6c 69 |y are double cli| 00000950 63 6b 65 64 0a 6f 6e 2e 0a 0a 53 65 74 74 69 6e |cked.on...Settin| 00000960 67 20 74 68 65 20 27 4f 6e 6c 79 20 63 68 65 63 |g the 'Only chec| 00000970 6b 20 66 69 6c 65 73 20 6f 66 20 52 69 73 63 20 |k files of Risc | 00000980 4f 53 20 66 69 6c 65 74 79 70 65 27 20 65 6e 61 |OS filetype' ena| 00000990 62 6c 65 73 20 79 6f 75 20 74 6f 20 63 72 65 61 |bles you to crea| 000009a0 74 65 20 61 0a 6c 69 73 74 20 6f 66 20 66 69 6c |te a.list of fil| 000009b0 74 79 65 70 65 73 20 77 68 69 63 68 20 73 68 6f |tyepes which sho| 000009c0 75 6c 64 20 62 65 20 63 68 65 63 6b 65 64 20 74 |uld be checked t| 000009d0 6f 20 73 65 65 20 69 66 20 74 68 65 79 20 61 72 |o see if they ar| 000009e0 65 20 6f 66 20 74 68 65 20 74 65 78 74 75 61 6c |e of the textual| 000009f0 0a 74 79 70 65 20 64 69 73 70 6c 61 79 65 64 20 |.type displayed | 00000a00 61 74 20 74 68 65 20 74 6f 70 20 6f 66 20 74 68 |at the top of th| 00000a10 65 20 77 69 6e 64 6f 77 2e 20 54 6f 20 61 64 64 |e window. To add| 00000a20 20 61 6e 20 65 6e 74 72 79 20 75 73 65 20 74 68 | an entry use th| 00000a30 65 20 77 72 69 74 61 62 6c 65 0a 65 6e 74 72 79 |e writable.entry| 00000a40 20 69 6e 20 74 68 65 20 61 64 6a 61 63 65 6e 74 | in the adjacent| 00000a50 20 70 6f 70 2d 75 70 20 6d 65 6e 75 2c 20 61 6e | pop-up menu, an| 00000a60 64 20 74 6f 20 64 65 6c 65 74 65 20 6f 6e 65 20 |d to delete one | 00000a70 73 65 6c 65 63 74 20 69 74 20 69 6e 20 74 68 65 |select it in the| 00000a80 20 6d 65 6e 75 0a 61 6e 64 20 63 6c 69 63 6b 20 | menu.and click | 00000a90 6f 6e 20 27 52 65 6d 6f 76 65 27 2e 0a 0a 49 6e |on 'Remove'...In| 00000aa0 20 61 20 73 69 6d 69 6c 61 72 20 77 61 79 20 74 | a similar way t| 00000ab0 68 65 20 6e 61 6d 65 73 20 6f 66 20 74 61 73 6b |he names of task| 00000ac0 73 20 61 6e 64 20 63 6f 6d 6d 61 6e 64 73 20 63 |s and commands c| 00000ad0 61 6e 20 62 65 20 61 64 64 65 64 20 74 6f 20 74 |an be added to t| 00000ae0 68 69 73 20 74 65 78 74 75 61 6c 0a 66 69 6c 65 |his textual.file| 00000af0 20 74 79 70 65 2e 20 4e 6f 74 65 20 74 68 61 74 | type. Note that| 00000b00 20 74 61 73 6b 20 6e 61 6d 65 73 20 6d 75 73 74 | task names must| 00000b10 20 62 65 20 74 79 70 65 64 20 2a 65 78 61 63 74 | be typed *exact| 00000b20 6c 79 2a 20 74 68 65 20 73 61 6d 65 20 77 61 79 |ly* the same way| 00000b30 20 61 73 20 74 68 65 79 0a 61 72 65 20 73 68 6f | as they.are sho| 00000b40 77 6e 20 69 6e 20 74 68 65 20 54 61 73 6b 20 4d |wn in the Task M| 00000b50 61 6e 61 67 65 72 2e 0a 0a 57 68 65 6e 20 61 20 |anager...When a | 00000b60 66 69 6c 65 20 6f 66 20 74 68 69 73 20 74 79 70 |file of this typ| 00000b70 65 20 69 73 20 64 6f 75 62 6c 65 20 63 6c 69 63 |e is double clic| 00000b80 6b 65 64 20 6f 6e 20 4d 61 67 69 63 20 66 69 72 |ked on Magic fir| 00000b90 73 74 20 63 68 65 63 6b 73 20 74 6f 20 73 65 65 |st checks to see| 00000ba0 20 69 66 0a 61 6e 79 20 6f 66 20 74 68 65 20 6e | if.any of the n| 00000bb0 61 6d 65 64 20 74 61 73 6b 73 20 61 72 65 20 6c |amed tasks are l| 00000bc0 6f 61 64 65 64 2e 20 49 66 20 6f 6e 65 20 69 73 |oaded. If one is| 00000bd0 20 66 6f 75 6e 64 20 74 68 65 20 66 69 6c 65 20 | found the file | 00000be0 69 73 20 73 65 6e 74 20 64 69 72 65 63 74 6c 79 |is sent directly| 00000bf0 0a 74 6f 20 69 74 2e 20 49 66 20 6e 6f 20 74 61 |.to it. If no ta| 00000c00 73 6b 73 20 61 72 65 20 66 6f 75 6e 64 20 74 68 |sks are found th| 00000c10 65 6e 20 4d 61 67 69 63 20 77 69 6c 6c 20 61 74 |en Magic will at| 00000c20 74 65 6d 70 74 20 74 6f 20 72 75 6e 20 65 61 63 |tempt to run eac| 00000c30 68 20 63 6f 6d 6d 61 6e 64 0a 6c 69 73 74 65 64 |h command.listed| 00000c40 20 69 6e 20 6f 72 64 65 72 20 75 6e 74 69 6c 20 | in order until | 00000c50 6f 6e 65 20 73 75 63 63 65 65 64 73 2e 20 49 66 |one succeeds. If| 00000c60 20 74 68 69 73 20 66 61 69 6c 73 20 74 68 65 6e | this fails then| 00000c70 20 74 68 69 6e 67 73 20 63 61 72 72 79 20 6f 6e | things carry on| 00000c80 20 61 73 20 69 66 0a 4d 61 67 69 63 20 77 61 73 | as if.Magic was| 00000c90 20 6e 6f 74 20 6c 6f 61 64 65 64 20 28 61 66 74 | not loaded (aft| 00000ca0 65 72 20 73 65 74 74 69 6e 67 20 74 68 65 20 66 |er setting the f| 00000cb0 69 6c 65 20 74 79 70 65 2c 20 69 66 20 74 68 69 |ile type, if thi| 00000cc0 73 20 6f 70 74 69 6f 6e 20 77 61 73 0a 65 6e 61 |s option was.ena| 00000cd0 62 6c 65 64 29 2e 20 48 6f 6c 64 69 6e 67 20 64 |bled). Holding d| 00000ce0 6f 77 6e 20 73 68 69 66 74 20 77 69 6c 6c 20 6f |own shift will o| 00000cf0 6e 6c 79 20 73 65 74 20 74 68 65 20 74 79 70 65 |nly set the type| 00000d00 20 6f 66 20 74 68 65 20 66 69 6c 65 2c 20 61 6e | of the file, an| 00000d10 64 20 6e 6f 74 0a 61 74 74 65 6d 70 74 20 74 6f |d not.attempt to| 00000d20 20 72 75 6e 20 61 6e 79 20 63 6f 6d 6d 61 6e 64 | run any command| 00000d30 73 20 6f 72 20 73 65 6e 64 20 69 74 20 74 6f 20 |s or send it to | 00000d40 61 6e 79 20 74 61 73 6b 73 20 2d 20 74 68 69 73 |any tasks - this| 00000d50 20 69 73 20 73 6f 20 74 68 61 74 20 79 6f 75 20 | is so that you | 00000d60 63 61 6e 0a 6c 6f 61 64 20 74 68 65 20 66 69 6c |can.load the fil| 00000d70 65 20 69 6e 20 74 6f 20 61 20 74 65 78 74 20 65 |e in to a text e| 00000d80 64 69 74 6f 72 20 65 61 73 69 6c 79 20 69 66 20 |ditor easily if | 00000d90 79 6f 75 20 77 69 73 68 2e 20 48 6f 6c 64 69 6e |you wish. Holdin| 00000da0 67 20 64 6f 77 6e 20 63 6f 6e 74 72 6f 6c 0a 77 |g down control.w| 00000db0 69 6c 6c 20 70 72 65 76 65 6e 74 20 4d 61 67 69 |ill prevent Magi| 00000dc0 63 20 66 72 6f 6d 20 64 6f 69 6e 67 20 61 6e 79 |c from doing any| 00000dd0 74 68 69 6e 67 20 61 74 20 61 6c 6c 2e 0a 0a 43 |thing at all...C| 00000de0 6f 6d 6d 61 6e 64 73 20 61 72 65 20 74 79 70 69 |ommands are typi| 00000df0 63 61 6c 6c 79 20 6f 66 20 74 68 65 20 66 6f 72 |cally of the for| 00000e00 6d 20 3c 41 70 70 24 44 69 72 3e 2e 21 52 75 6e |m <App$Dir>.!Run| 00000e10 20 25 73 20 77 68 65 72 65 20 41 70 70 20 69 73 | %s where App is| 00000e20 20 74 68 65 20 6e 61 6d 65 20 6f 66 0a 74 68 65 | the name of.the| 00000e30 20 70 72 6f 67 72 61 6d 2c 20 77 68 69 63 68 20 | program, which | 00000e40 6d 75 73 74 20 68 61 76 65 20 62 65 65 6e 20 73 |must have been s| 00000e50 65 65 6e 20 62 79 20 74 68 65 20 66 69 6c 65 72 |een by the filer| 00000e60 20 66 6f 72 20 74 68 65 20 63 6f 6d 6d 61 6e 64 | for the command| 00000e70 20 74 6f 0a 73 75 63 63 65 73 66 75 6c 6c 79 20 | to.succesfully | 00000e80 72 75 6e 2e 20 59 6f 75 20 63 61 6e 20 65 6e 74 |run. You can ent| 00000e90 65 72 20 61 6e 20 61 62 73 6f 6c 75 74 65 20 70 |er an absolute p| 00000ea0 61 74 68 6e 61 6d 65 20 69 66 20 79 6f 75 20 77 |athname if you w| 00000eb0 69 73 68 2c 20 62 75 74 20 74 68 69 73 0a 77 69 |ish, but this.wi| 00000ec0 6c 6c 20 66 61 69 6c 20 69 66 20 74 68 65 20 70 |ll fail if the p| 00000ed0 72 6f 67 72 61 6d 20 6d 6f 76 65 73 2e 20 54 68 |rogram moves. Th| 00000ee0 65 20 25 73 20 61 74 20 74 68 65 20 65 6e 64 20 |e %s at the end | 00000ef0 69 73 20 72 65 70 6c 61 63 65 64 20 62 79 20 74 |is replaced by t| 00000f00 68 65 20 70 61 74 68 6e 61 6d 65 0a 6f 66 20 74 |he pathname.of t| 00000f10 68 65 20 66 69 6c 65 20 74 6f 20 62 65 20 6c 6f |he file to be lo| 00000f20 61 64 65 64 20 28 49 20 63 61 6e 20 69 6d 61 67 |aded (I can imag| 00000f30 69 6e 65 20 73 6f 6d 65 20 43 20 70 72 6f 67 72 |ine some C progr| 00000f40 61 6d 6d 65 72 73 20 6f 75 74 20 74 68 65 72 65 |ammers out there| 00000f50 20 73 6d 69 6c 69 6e 67 0a 72 69 67 68 74 20 6e | smiling.right n| 00000f60 6f 77 2e 2e 2e 29 2e 0a 0a 43 68 61 6e 67 65 73 |ow...)...Changes| 00000f70 20 6e 6f 72 6d 61 6c 6c 79 20 74 61 6b 65 20 69 | normally take i| 00000f80 6d 6d 65 64 69 61 74 65 20 65 66 66 65 63 74 20 |mmediate effect | 00000f90 62 75 74 20 77 69 6c 6c 20 6e 6f 74 20 62 65 20 |but will not be | 00000fa0 70 65 72 6d 61 6e 65 6e 74 20 75 6e 74 69 6c 20 |permanent until | 00000fb0 79 6f 75 0a 63 6c 69 63 6b 20 6f 6e 20 53 61 76 |you.click on Sav| 00000fc0 65 2e 0a 0a 54 68 65 20 52 65 6c 6f 61 64 20 62 |e...The Reload b| 00000fd0 75 74 74 6f 6e 20 73 68 6f 75 6c 64 20 62 65 20 |utton should be | 00000fe0 75 73 65 64 20 69 66 20 79 6f 75 20 77 69 73 68 |used if you wish| 00000ff0 20 74 6f 20 64 69 73 63 61 72 64 20 61 6e 79 20 | to discard any | 00001000 63 68 61 6e 67 65 73 20 61 6e 64 0a 72 65 76 65 |changes and.reve| 00001010 72 74 20 74 6f 20 74 68 65 20 6f 72 69 67 69 6e |rt to the origin| 00001020 61 6c 20 73 61 76 65 64 20 66 69 6c 65 2c 20 61 |al saved file, a| 00001030 6e 64 20 73 68 6f 75 6c 64 20 61 6c 73 6f 20 62 |nd should also b| 00001040 65 20 75 73 65 64 20 69 66 20 79 6f 75 20 65 64 |e used if you ed| 00001050 69 74 20 74 68 65 0a 6d 61 67 69 63 20 66 69 6c |it the.magic fil| 00001060 65 20 64 69 72 65 63 74 6c 79 2e 0a 0a 4e 6f 74 |e directly...Not| 00001070 65 20 74 68 61 74 20 77 68 65 6e 20 61 20 76 65 |e that when a ve| 00001080 72 79 20 6c 61 72 67 65 20 6e 75 6d 62 65 72 20 |ry large number | 00001090 6f 66 20 66 69 6c 65 20 74 79 70 65 73 20 61 72 |of file types ar| 000010a0 65 20 70 72 65 73 65 6e 74 20 69 6e 20 74 68 65 |e present in the| 000010b0 20 64 61 74 61 62 61 73 65 0a 74 68 65 20 66 69 | database.the fi| 000010c0 6c 65 20 74 79 70 65 20 6d 65 6e 75 20 63 61 6e |le type menu can| 000010d0 20 74 61 6b 65 20 61 20 73 68 6f 72 74 20 77 68 | take a short wh| 000010e0 69 6c 65 20 74 6f 20 61 70 70 65 61 72 20 28 64 |ile to appear (d| 000010f0 75 65 20 74 6f 20 52 69 73 63 20 4f 53 29 2e 0a |ue to Risc OS)..| 00001100 0a 49 66 20 79 6f 75 20 68 61 76 65 20 6c 69 6d |.If you have lim| 00001110 69 74 65 64 20 6d 65 6d 6f 72 79 20 79 6f 75 20 |ited memory you | 00001120 6d 61 79 20 77 69 73 68 20 74 6f 20 65 64 69 74 |may wish to edit| 00001130 20 74 68 65 20 6d 61 67 69 63 20 66 69 6c 65 20 | the magic file | 00001140 62 79 20 68 61 6e 64 20 61 6e 64 0a 63 6f 6d 6d |by hand and.comm| 00001150 65 6e 74 20 6f 75 74 20 6d 61 6e 79 20 66 69 6c |ent out many fil| 00001160 65 20 74 79 70 65 73 20 77 68 69 63 68 20 79 6f |e types which yo| 00001170 75 20 64 6f 20 6e 6f 74 20 74 68 69 6e 6b 20 79 |u do not think y| 00001180 6f 75 20 77 69 6c 6c 20 72 65 71 75 69 72 65 2e |ou will require.| 00001190 0a 0a 41 20 73 65 63 6f 6e 64 20 6d 61 67 69 63 |..A second magic| 000011a0 20 66 69 6c 65 20 69 73 20 70 72 6f 76 69 64 65 | file is provide| 000011b0 64 2c 20 27 42 53 44 4d 61 67 69 63 27 2c 20 77 |d, 'BSDMagic', w| 000011c0 68 69 63 68 20 63 6f 6e 74 61 69 6e 73 20 74 68 |hich contains th| 000011d0 65 20 66 75 6c 6c 20 73 65 74 20 6f 66 0a 66 69 |e full set of.fi| 000011e0 6c 65 74 79 70 65 73 20 69 6e 20 74 68 65 20 6f |letypes in the o| 000011f0 72 69 67 69 6e 61 6c 20 4e 65 74 42 53 44 20 6d |riginal NetBSD m| 00001200 61 67 69 63 20 66 69 6c 65 2e 20 54 68 69 73 20 |agic file. This | 00001210 66 69 6c 65 20 69 73 20 73 6c 69 67 68 74 6c 79 |file is slightly| 00001220 20 6d 6f 64 69 66 69 65 64 0a 74 6f 20 75 73 65 | modified.to use| 00001230 20 74 68 65 20 65 78 74 72 61 20 73 79 6e 74 61 | the extra synta| 00001240 78 20 6f 66 20 21 4d 61 67 69 63 20 69 6e 20 6f |x of !Magic in o| 00001250 72 64 65 72 20 74 6f 20 61 76 6f 69 64 20 6d 61 |rder to avoid ma| 00001260 6e 79 20 64 75 70 6c 69 63 61 74 65 20 6d 65 6e |ny duplicate men| 00001270 75 0a 65 6e 74 72 69 65 73 2e 20 54 68 69 73 20 |u.entries. This | 00001280 66 69 6c 65 20 64 6f 65 73 20 4e 4f 54 20 63 6f |file does NOT co| 00001290 6e 74 61 69 6e 20 6d 61 6e 79 20 6f 66 20 74 68 |ntain many of th| 000012a0 65 20 41 63 6f 72 6e 20 66 69 6c 65 20 66 6f 72 |e Acorn file for| 000012b0 6d 61 74 73 20 69 6e 20 74 68 65 0a 6f 72 69 67 |mats in the.orig| 000012c0 69 6e 61 6c 20 6d 61 67 69 63 20 66 69 6c 65 2c |inal magic file,| 000012d0 20 61 6e 64 20 79 6f 75 20 6d 61 79 20 77 69 73 | and you may wis| 000012e0 68 20 74 6f 20 61 64 64 20 74 68 65 73 65 20 62 |h to add these b| 000012f0 79 20 68 61 6e 64 20 77 69 74 68 20 61 20 74 65 |y hand with a te| 00001300 78 74 0a 65 64 69 74 6f 72 2e 20 59 6f 75 20 6d |xt.editor. You m| 00001310 61 79 20 6e 65 65 64 20 74 6f 20 64 65 6c 65 74 |ay need to delet| 00001320 65 20 74 68 65 20 66 69 6c 65 20 27 74 72 69 63 |e the file 'tric| 00001330 6b 73 27 20 69 6e 73 69 64 65 20 21 4d 61 67 69 |ks' inside !Magi| 00001340 63 20 66 6f 72 20 4d 61 67 69 63 20 74 6f 0a 6e |c for Magic to.n| 00001350 6f 74 69 63 65 20 74 68 65 20 63 68 61 6e 67 65 |otice the change| 00001360 64 20 66 69 6c 65 20 28 77 68 69 63 68 20 6d 61 |d file (which ma| 00001370 79 20 68 61 76 65 20 61 6e 20 65 61 72 6c 69 65 |y have an earlie| 00001380 72 20 64 61 74 65 29 2e 0a |r date)..| 00001389