home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d7xx
/
d719
/
deftool.lha
/
DefTool
/
DefTool.doc
< prev
next >
Wrap
Text File
|
1992-08-20
|
2KB
|
55 lines
DefTool
~~~~~~~
Written on an Amiga 3000UX in SAS C 5.10a by Robert Lang and dedicated to
Suzanne Day and of course © Edgeware.
Another small, quick utility whipped up in C in no time at all ! This simple
program sets the Default Tool of an icon. This has the same effect as selecting
"INFO" on the icon on workbench and changing the text in the Default Tool Type
to the text. Except, I'm sure you'll agree, that if you're a shell-freak like
me then this is much quicker.
Usage is simple...
DefTool File Tool
e.g. DefTool nice_pic.info topik_45:c/mostra
(Clicking on the icon will invoke topik_45:c/mostra !)
(The file can have the .info or not, my program will figure it out.)
I haven't written any pattern matching into this, because its not really needed.
The following can be done for batch jobs:
For example, suppose we want to set a range of pictures on topik_45: to be
displayed using topik_45:c/mostra. The following commands are given :
1> list >ram:script topik_45:#?.pic.info lformat="DefTool %S%S topik_45:c/mostra"
1> execute ram:script
The first line creates a script for all #?.pic.info files on topik_45: and then
the second line of course executes it.
Simple as that ! (For more info on LIST, see my article on a Megadisc
somewhere...call Tim Strachan on 02-9593692 about which Megadisc the article is
on....)
This program is FREELY DISTRIBUTABLE, and may not be used on any commercial
product without my permission. It can only be distributed with this document
in tact and for no more than current Megadisc or Fred Fish prices.
Contact me :
Robert Lang
P.O. Box 127
CARDIFF NSW 2285
AUSTRALIA
Bug Fixes :
V1.1 :
31st May 1992 - added check to make sure an icon is a project !