home *** CD-ROM | disk | FTP | other *** search
- INSTALLATION OF THE CSH SCRIPTS FOR TOOLMANAGER
- ===============================================
-
- 1. Purpose
- ----------
-
- In this directory, there are four scripts. They all have an appicon for use
- in ToolManager.
- view.sh - shows/plays files of any type dropped on it
- edit.sh - edits (DPaint, SoundTracker, CED) files of any type
- unpack.sh - de-archives all archive types (.lzh, .zoo, .dms an more)
- pack.sh - creates an archive of any files dropped on it
- There are two additional scripts:
- class.sh - contains the information on how to determine file types.
-
-
-
- 2. Problems
- -----------
-
- The main problem is that you'll have to do some installation work first,
- especially if you haven't already installed csh. For full functionality, csh
- 5.16 is required, which probably isn't even out when you read this. You'll
- also have to specify your personal viewing/editing/extracting tools and your
- AmigaDOS search path to the the script 'class.sh'.
-
-
-
- 3. You don't have csh
- ---------------------
-
- That's your fault :-) First, you have to get csh itself, as it's not in this
- archive. You can get csh 5.15 from Fish Disk 512, or if you have access to
- FTP, from ab20.larc.nasa.gov (/amiga/utils/system/cli/shells/csh515.lzh). If
- possible, get csh 5.16. See below for limitations of csh 5.15.
-
-
-
- 4. Basic Installation
- ---------------------
-
- Add a line to your startup-sequence that assigns the logical device CSH: to
- some directory on your HD. Copy all .sh and .brush files from this directory
- to CSH:. Copy ToolManager.config from this directory to S:, or if you
- already have one, append it to yours.
- Now edit the file CSH:class.sh. If you already have a customized class.sh,
- add the first few lines of this class.sh to it. At the top, you have to add
- a path command that sets the search path for the displaying and editing
- utilities. You can also add full paths to all utilities, see below.
- Csh itself does not need to be running when you're using ToolManager, but it
- has to be either resident or in CSH: or in C: for ToolManager to find it
- (unless you specify a full path name in ToolManager.config).
-
-
-
- 5. Customization
- ----------------
-
- Let's have a look at a typical line in class.sh:
- class ascii suff=.doc suff=.txt chars act view=more edit=Ed
- N R R R K A A A
- Here N means the name of the class, R is a recognition method, K is the key-
- word that indicates the following are action definitions, an A are the
- actions. If you want to use muchmore instead of more, just enter
- class ascii suff=.doc suff=.txt chars act view=muchmore edit=Ed
- If muchmore is not in the path defined at the top of class.sh, you have to
- specify a full path name. The additional thing you have to know what actions
- are performed by the various AppIcons:
-
- Icon Script Action
- ---------------------------------
- eye - view.sh - view
- hammer - edit.sh - edit
- explosion - unpack.sh - extr
- implosion - pack.sh -
-
- For additional information, e.g. creating new file classes and actions,
- refer to your csh.doc, chapter 'object oriented features'.
-
-
-
- 6. Csh 5.15 vs. 5.16
- --------------------
-
- An old limitation of csh 5.15 showed up when I wrote these scripts. It'll
- misinterpret file names with embedded blanks in the command line (csh -c). I
- have added support for this in csh 5.16. As soon as you get it, change the
- 'RealName' field in ToolManager.config from 'csh -ac ...' to 'csh -aC ...'.
- There's a patch in class.sh that solves the problem with the name 'Ram Disk:'
- but not other names with embedded blanks. The patch only active if the csh
- version is smaller than 5.16 so be sure to change ToolManager.config when
- upgrading.
-
-
- 7. Usage of the scripts
- -----------------------
-
- view.sh: Drop one icon on the eye AppIcon. If the file type can be
- determined and the viewer can be started, it will be shown. If the viewer
- accepts multiple file names in the command line (most do) you extended-select
- any number of icons and drop them on the AppIcon. They must all be the same
- type. If you drop a drawer on the AppIcon, drawer/* will be shown, so the
- type of the alphabetically first item determines which viewing program is
- started.
-
- edit.sh: Basically the same as with view.sh, except that most file types
- cannot be edited yet, so you must configure yourself.
-
- unpack.sh: Either drop an archive on the AppIcon, so it will be unpacked to
- RAM: (you can modify this) or extended select an archive and a drawer, so
- the archive will be unpacked to the drawer. Remember that the workbench does
- not notice if new files appear, so you have to perform an 'Update'.
-
- pack.sh: Either you drop a single or a set of icons on the AppIcon, in which
- case a file requester will ask you for a new archive name, or you drop some
- icons plus an archive on the AppIcon, then the files will be added to that
- archive.
-
-
- 8. Various
- ----------
-
- Problems when doing scripts of your own: Starting a csh without a CLI causes
- some. Never forget the -a option. And you won't get to see stderr as of
- yet. Also remember that the path is unset. If you have specific problems
- with csh, or have found new and exciting applications of csh in conjunction
- with ToolManager, you can contact me. My address is in csh.doc.
-
-
-
- U. Dominik Mueller
-