Naming and Running Macros
- Last UpdatedOct 24, 2022
- 1 minute read
A macro file can be given any name that conforms to the naming conventions of the operating system.
The suffix .mac is often used to indicate that the filename is that of a macro, but this is optional.
The process of reading the contents of a macro file as program input is known as running the macro. The program does not discriminate between input from the GUI, the keyboard, or a macro file.
To run a macro, enter:
$M filename
Here, filename is the pathname of the macro file. The filename may optionally be preceded by a slash (/) character.
If you give only the name of the file, the program will look for it in the directory from which you executed the program.
An error message will be output if the file cannot be found and opened for reading.