home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
164.lha
/
ARexx
/
WB_ARexx_v1.1
/
readme
< prev
next >
Wrap
Text File
|
1988-04-28
|
4KB
|
85 lines
WBRexx 1.1
==========
Copyright 1988, W.G.J. Langeveld
All Rights Reserved
Freely Distributable
WBRexx is a program that allows you to run your REXX scripts from the
workbench. This file contains the executable, the sources and some example
icons and scripts. The file marquis.rexx is courtesy Bill Hawes.
Changes for this version
------------------------
Version 1.1 supports the WINDOW tool type, and it now correctly remembers
the drawer from which a Rexx macro was started up. A previously released version
required one more level of quotes been eliminated in the RX ToolType strings, see
later. This version is distributed as a ZOO archive, the previous one was in
ARC format.
Instructions
------------
First copy the program WBRexx to a place of your choosing. This archive
assumes you will copy it to a directory with the logical name tools: . Of course
you may copy it anyplace you like, but then you must change the default tool in
all icons (they have been set to tools:WBRexx).
You run an ARexx script from the Workbench simply by giving it an icon
such as the ones in this archive (like marquis.rexx.info). After making sure the
default tool points to the right place (using the "Info" option of the Workbench
menu), you double-click on the icon and the script is submitted to REXX.
You can also click on the icon, hold down the shift key on the keyboard
and double-click on the WBRexx tool icon. In fact you can execute several
scripts in a row by extended-selecting them all and double-clicking on WBRexx.
You can also use a shortcut: If you have a script which is really small
you may want to put it in as a string command. To do this, use "Info" from the
Workbench menu to edit the icon, and add the tool type:
RX=your-favorite-in-line-rexx-macro-goes-here
For example, to run TxEd, the tooltype would be:
RX=address command 'c:e'
In order for this to work, the icon file must NOT have an associated
regular file, i.e. if your icon is runtxed.rexx.info, there must NOT be a file
called runtxed.rexx. Only if the .info file is all by itself, will WBRexx check
for tooltype RX. In all other cases it will assume that you really want to submit
the associated file to REXX. Also, WBRexx checks only for ONE RX tooltype, and
it only uses the first one it can find. (Notice, that in a previous version, the
entire string had to be enclosed in quotes. This is no longer necessary, and in
fact will not work anymore - this is because I fixed what was in fact a bug).
There is a catch 22 situation here. Under 1.2, it is not possible to
edit an icon using "Info" if the icon does not belong to a file. The Info
program will briefly flash up, and exit again. This has been changed in 1.3:
there you can edit icons that stand by themselves. For now, to use this feature
under 1.2 you should have a dummy file associated with your icon before you edit
it. Then you can edit the icon, and then you must delete the dummy file.
Some scripts need to display text. This wasn't possible in the previous
versions of WBRexx, since the Workbench does not handle standard input or output
and things like ARexx "say" used to go to the bitbucket. In the previous
versions, if you wanted this type of thing, you had to open console windows
yourself, like in marquis.rexx. Steve Berry has added to WBRexx the capability
of opening a console window automatically, if the WINDOW tool type is specified
(thanks, Steve!).
For example, if one of the tooltypes in the project icon is
WINDOW=CON:0/0/320/100/"WBRexx console"/
a small window will be opened and any messages will be displayed there.
Finally, you will sometimes wonder why nothing is happening. It may be
helpfull to see what actually was done by WBRexx. Therefore, WBRexx itself has
a tooltype it checks. This is the tooltype DEBUG. It can be either ON or OFF.
For example, if you want debugging, the WBRexx icon should contain the tooltype:
DEBUG=ON
This causes WBRexx to display in three steps how it arrives at the string it
will send to REXX. This option only works by using extended select (because only
then will the WBRexx icon be used).
If there are any questions, I'm sure I'll hear about them on BIX in
amiga.user/arexx.
Willy.