For conversion to supported format the macro "extension1>extension2|command" is used.
For calling external viewer macro "extension|command" is used.
"extension|command>$2" is used for converting into HTML if the program prints to the screen (must use stdout).
In command arguments you can use following macros.
Instead of $1, $2, etc. (as Unix scripts has) you can use %1, %2 (as DOS batch files has).
These are in some sort of alpabetical order to make it easier to see what each one does.
| Macro | Explanation | Details |
| $1 | Full input filename | The file Arachne is trying to "launch" |
| $2 | Full output filename | The file where Arachne should write to (in cache) Used for internal purposes by Arachne. Should be added to all commands that convert something to a known format. |
| $a | Path to cache | Typicaly CACHE\ |
| $b | Full name of bookmarks | Typicaly HOTLIST.HTM |
| $c | Full name of cache index | Typicaly CACHE.IDX |
| $d | File | ftp://ftp.vse.cz/pub/msdos/Arachne/ -> /pub/msdos/Arachne/ |
| $e | Path to executable files | The directory where CORE.EXE, INSIGHT.EXE, etc is located |
| $g | IP address of first gateway | According to ARACHNE.CFG |
| $h | Full name of history file | Typicaly HISTORY.LST |
| $i | Your IP address | |
| $l | Last visited document | Filename (ex. home.htm) |
| $m | Path to mail directory | Typicaly MAIL\ |
| $n | IP address of first nameserver | According to ARACHNE.CFG |
| $p | Host | telnet://cyberspace.org -> cyberspace.org |
| $q | File with query string | created only when using this macro |
| $r | Screen resolution | (639, 799 or 1023) |
| $s | CGI compatible query string | Max. 80 characters |
| $t | Path for temporary files | (either CACHE\ or %TEMP% - see Cache2TEMP) |
| $u | URL of document | Ex. file://c:/arachne/home.htm |
| $w | Download path | (typicaly DOWNLOAD\) |
| $x | Netmask | According to ARACHNE.CFG |
| \n | End of line | This won't work for "|[nn]" style commands |
| %% | % character | If you need a % in the command |
| $$ | $ character | If you need a $ in the command |
| \\ | \ character | Usefull if you need to specify directories |
This document is always under construction, last change: 99-05-31
© Bernhard "Bernie" Eriksson 1999, 2006.