home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 2
/
goldfish_vol2_cd1.bin
/
files
/
comm
/
fido
/
spot
/
rexx
/
temptool.doc
< prev
next >
Wrap
Text File
|
1993-09-02
|
4KB
|
105 lines
TempTool v1.1
By Philip O'Malley (C)1993
(Fidonet: "Phil O'Malley" at 2:250/107.96)
1.1 An Introduction
TempTool an ARexx script, designed to work inconjunction with Spot, which
alters the temp file sent to your text editor, thus adding its capabilities
to those of Spot. The intention is to append more features to the script
when I desire, or am requested to add, them. At the moment v1.1 will change
peoples names in the reply header with nicknames from the userlist.
1.2 Execution Syntax
TempTool has the following execution syntax:
rx TempTool.spot <path to your spot.temp file>
1.3 Installation
TempTool should be run immediately before your text editor. Thus is best
accomplished by the use an execution script which is called from Spot instead
of calling the editor directly. Such a script, where the spot.temp file was
kept in DH0:T/ and my editor was CEd, could look like:
; Execution script for TempTool.spot
rx TempTool.spot dh0:t/spot.temp
ced dh0:t/spot.temp -keepio
2.1 Substituting Nicknames
Mail editors are wonderful things, but the automatic replies they create
are formal and impersonal. TempTool will interchange a person's name found in
the userlist with a nickname defined in the comment field, thus adding a
personal and perhaps humorous (your decision) touch. Once the script is
installed, all nicknames are entered from the userlist requester in Spot.
However, for maximal speed, TempTool requires the reply headers to
formatted in a specific manner. Firstly, the whole header must be enclosed by
user-definable markers which, if the script has reached you intact, are
initially defined as "!intro_start\n" and "!intro_end\n". To change these
markers to your own ideals then edit the following lines in the script:
marker_intro_start = '!intro_start'||newline
marker_intro_end = '!intro_end'||newline
Notice that "newline" is my ARexx definition of a line feed, or hex 0A,
and corresponds to the "\n" which Spot uses in the header window. Secondly,
the reply header name variables (%N and %A) must also be enclosed by user-
definable markers, initially defined as "!#" and "#!". Again, to change these
markers to your own preferences then edit the following lines in the script:
marker_name_start = '!#'
marker_name_end = '#!'
So, using the initial defaults a reply header of...
On %d, %N conveyed to %A:\n
...would be altered to become:
!intro_start\nOn %d, !#%N#! conveyed to !#%A#!:\n!intro_end\n
However, that is not the end of the story. You must also specify the path
to all your userlists in the variable "userlist.x" where "x" is the number of
the userlist. So, if you had two userlists held in the mail: directory called
"userlist_fidonet" and "userlist_amiganet" you would make the following
entries in the appropriate section of the script:
/* Intra-script path assigns */
userlist.1 = 'mail:userlist_fidonet'
userlist.2 = 'mail:userlist_amiganet'
The actual nickname entries are via the Spot userlist requester - once
the script is installed you need not touch it again. Here you must made a
userlist entry of the person concerned and put the replacement name which
TempTool will use in the comment field. I did not use the nickname field
itself as it would possibly compromise its system-wide use.
3.1 Pseudo-Legal Stuff
TempTool.spot is freely distributable so long as the script is
accompanied by this documentation file, and both are not crunched by any
program that is not freely available in the public domain. I retain the sole
copyright to this program, and alteration of the script or accompanying
documentation is forbidden without my written approval.
You must be aware that TempTool.spot writes to a directed volume and a
crash during an operation may lead to the corruption of data. I refuse to be
held responsible for any loss of data caused either directly or indirectly
through the use of this script. You use it at your own risk, and your use of
it signifies your acceptance of these conditions.