home *** CD-ROM | disk | FTP | other *** search
- Close
- =====
-
- Introduction
- ------------
- In the midst of developping an application have you ever come across the
- dreaded File open (or Bad buffer size if you have LongFiles) error ?
- If you haven't then you obviously program very well. If, on the other
- hand, a crashed application can leave a thousand miscellanous files open by
- accident, then you might like to use this application.
-
- Usage
- -----
- Clicking Select on the iconbar icon will bring up a menu of currently open
- files. These are categorised into 7 sections :
- R Run files; those whose leafname starts !Run.
- B Boot files; those whose leafname starts !Boot.
- O Obey files; any other Obey file.
- A Font files; any file of type Font.
- D Device files; those in DeviceFS.
- Ixxx Image files; each individually catagorised.
- F Other files; anything not covered by the above.
- P Directories (Paths)
-
- The codes on the left indicate options which may be included in the
- Close$Options variable.
-
- For example; if you wanted to see only obey files, device files and ArcFS
- archives you would use *Set Close$Options ODI3fb
-
- If you wanted just the files not covered in the other sections (ie probable
- data files), you could use *Set Close$Options F
-
- Note, the order of the options is the order they appear on the menu.
-
-
- How it works
- ------------
- Well, it's dull, butî
-
- When select is clicked the file handles from 255 downwards are scanned until
- a gap of 8 unused file handles is found (to speed up the listing). If one of
- the handles is used, the OS_Args call 7 is used to find the filename; then
- the type of the file is checked and the correct array is added to.
-
- Then, when the end of the handles is found, the arrays are built into menus,
- and finally the system variable is scanned and the top level menu is created
- and opened.
-
- When clicked on, all handles with the same pathname are closed, so if you
- have opened a file a couple of dozen times (for read), then one click will
- close every instance of that file in the handles list. For speed, the menu is
- not updated on menu selection.
-
-
- Help and message files
- ----------------------
- This application is fully !Help compliant and it is recommended that when
- getting to grips with it the help should be used if only to give it some
- purpose! It also supports the use of MessageTrans and therefore translation
- to another language or changing the messages for the fun of it is much easier
- than it might have been.
-
-
- <BasicLibrary$File>
- -------------------
- This application requires Justin Fletcher's JFShared library to function.
- This can be obtained from Arcade and possibly other bulletin boards. I have
- seen QuickHelp on Digital Databank, so it is possible that JFShared exists
- there also.
-
-
- Compatibility
- -------------
- This application has been tested on the author's A5000, but due to the lack
- of friends with Acorns has not been tested on other systems. Therefore, it
- ought to work on any RO3.1 machine, and with a RO2 machine if it is
- recognised in JFShared and uses no specific RO3 features.
-
-
- Disclaimer
- ----------
- The author accepts no responsibility for any problems which this
- application may cause or loss of data resulting in its use. This application
- is Public Domain. This means that it may be distributed, so long as no charge
- other than copying costs are charged for it.
-
-
- Contact
- -------
- Any comments, queries, donations or bug reports can be sent to Justin
- Fletcher at :
-
- E-Mail : Gerph@essex.ac.uk
- URL : http://users.essex.ac.uk/users/gerph
- IRC : On #Acorn as Gerph
- Finger : finger jrflet@postman.essex.ac.uk
- Tel : (01842) 813979
-
- Snail Mail :
- Justin Fletcher
- öGaladrielò
- 17b Cromwell Road,
- Weeting,
- Brandon,
- Suffolk.
- IP27 0QT
-
-
- History
- -------
- Version 1.00 : ?? ??? ????
- First version written
-
- Version 1.02 : 05 Sep 1995
- Added Image files support to remove great big list of
- StrongHelp files which I tend to get.
-
- Version 1.03 : 27 Mar 1996
- Multitudinous extensions added :-)
- Å Added the extra information to the menu line and handle number
- Å Added the greying so that files you have already closed will
- not be accessable.
- Å Little bits of tidying up.
-
- Version 1.04 : 05 Jul 1996
- Major bug in RO3.1 menus fixed - you could only see 4 letters
- of the filename :-(
-