home *** CD-ROM | disk | FTP | other *** search
- WBRexx
- ======
-
- 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.
- This is an update to a previously released version. One level of quotes
- has been eliminated in the ToolType strings, see later.
-
- 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).
- Then, execute "executeme" to rename several files.
- 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. Since
- the Workbench has no input/output handling, and since this program does not open
- input/output windows, not all scripts are suitable for this purpose: any
- standard input or output (like ARexx "say") will go to the bitbucket. If you
- want this type of thing, you must open console windows yourself, like in
- marquis.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 a tooltype. 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.
- 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.
-
-