var := UNIQUE dir ext mode digits [ offset ]
The STx command
UNIQUE returns a unique filename for the specified directory (use "
*" for the current working directory). If a directory other than "
*" is specified, it is made the current working directory first.
The unique filename will be returned without its path prefix and without an extension. If, for one reason or the other, STx should be unable to create a unique filename, it will return the empty string.
- The name of directory or "
*" for the current working directory.
- The filename extension.
- When supplying
0for the mode argument, STx will generate the filename by using an internal decimal counter. When, on the other hand, supplying
1for mode, STx will use a hexadecimal random number.
- The number of digits to use in the unique filename.
- The first index (for counter mode only).