home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d9xx
/
d985
/
newtool.lha
/
NewTool
/
NewTool.doc
< prev
next >
Wrap
Text File
|
1994-04-04
|
5KB
|
154 lines
NewTool v2.6
NewTool and this documentation are Copyright © 1994 by Michael Barsoom.
-+- License -+-
NewTool may be freely distributed as long as no charge is made other
than to cover time and copying costs. This should be no higher than what
Fred Fish charges from one of his freely redistributable disks.
You may not copy and/or distribute this program without the accompanying
documentation unless you get permission from the author to do so.
Fred Fish and Walnut Creek have permission to include this program on there
FD disks/CDRoms.
-+- Disclaimer -+-
This product is sold "as is" without representation or warranty of
any kind, either expressed or implied. The user assumes all risks and
responsibilities related to its use.
-+- Introduction -+-
NewTool will change the default tool of project and disk icons automatically
in one of three ways:
1) You can specify the default tool to use
2) You can use a file requester to pick the default tool
3) You can have new tool automatically pick the right default tool depending
on the file type.
I wrote it to be used from DOpus or from programs that add programs to the
Tools menu (ie. ToolManager © Stefan Becker or ToolDaemon © Nico Francois)
New for v2.5+ a GUI preference editor.
-+- Requirements -+-
1) Workbench 2.0+
2) ReqTools library v38+ (© Nico Francois)
3) WhatIs library (© S.R. & P.C.)
4) some icons.
-+- Usage -+-
From CLI only.
NewTool Icons/M/A,Tool/K,Req=Requester/S
1) Replace default tool with specified tool.
Must specify keyword Tool
For example: NewTool newtool.doc Tool=multiview
Will replace the default tool of newtool.doc.info to multiview.
2) Use file requester to choose new default tool.
You can also use the ReqTools file requester to choose the default tool.
To do this specify the switch Req=Requester, this will bring up the file
requester for you to choose the default tool you want for all the icons you
have specified.
For example: NewTool newtool.doc Requester
Will let give you a file requester to choose the new default tool for
newtool.doc.info.
3) Have NewTool automaticaly choose the new default tool depending on the
configuration file and what the file type is.
(see example config file to see how to configure this to your liking)
For example: NewTool newtool.doc
Will parse the file determine what type of file it is and change the
default tool to the one specified in ENV:NewTool.prefs or S:NewTool.prefs
The switch All will cause NewTool to scan directories recursively.
-+- PrefsEditor -+-
The prefs editor is pretty self explanatory. The top is a scrolling list
of all the FileTypes that WhatIt currently recognizes in your system; this
includes all the built in types and those defined in the S:FileTypes file.
Under the list is a string gadget. Here will be displayed the name of the
tool that the currently highlighted FileType is assigned to. You can edit
it by hand, or press on Get to use the filerequester to pick the tool.
Save - will present you with a requester asking if you want to save to ENV:
or S:. The default responce will be where it found the prefs file when first
run.
ReLoad - Restore the last saved config.
Cancel - cancel all changes and quit (same as pressing the close gadget)
-+- Shareware -+-
AddInfo is shareware, if you use it regularly you are asked to pay
the shareware fee of $2 US.
-+- Thanks -+-
To my loving wife Barbara.
-+- Bugs, Suggestions -+-
you can reach me at:
5524 Pine Street
Omaha NE 68106
USA
Internet: mbars@bluejay.creighton.edu
Fidonet: Mike Barsoom @ 1:285/11.9
AmigaNet: Mike Barsoom @ 40:200/10.9
-+- History -+-
v37.100
v37.201
o Now requires WhatIs library. Can change the default tool according to
what the file type is.
o If one of the required libraries was not found, the other libraries
were not closed before exiting (fixed).
v37.203
o Cleaned up code a bit making the executable shorter.
v2.4 (v37.204)
o Version numbering changed, to conform to RCS program that I started
using from. All I did was drop the 37 and move the decimal to the
right one. So v2.4 is equivalent to what would have been 37.204
o Now uses ReadArgs() to parse command line and config file.
o Must use Tool keyword to specify default tool on command line.
o Prefs file format has changed.
o Was not looking in S: if it could not find prefs file in ENV:
o Saves a few bytes on executable.
v2.5
o When using automode, NewTool will now check to see if the icon is
a project icon before examining it.
o Includes new preference editor (NewTool Prefs v1.0)
v2.6
o Removed auto switch, now auto is default unless Tool or Req are
specified.
o NewTool would scan the same icon twice when auto was specified
(fixed)
o Added wild cards and All switch (requested by Roberto Agria)
o Added control-c breaking
o Cursor is now hidden when running
o Includes NewToolPrefs v1.2