This article is from the ZTerm FAQ, by Les Jones firstname.lastname@example.org with numerous contributions by others.
Macros are mainly used to send strings of text. Choose Edit Macros
from the Macros menu and type in the text you'd like to send. You
can activate the macro by choosing it from the Macro menu or typing
the command-key shortcut. I store "anonymous" in one macro and my
email address in another. When an ftp host asks for my user name
and password, I can send them with two keystrokes.
In ZTerm, macros can also be used to run scripts. Simply type the
name of the script into the macro editor, and place the (option-r)
character in front of it. The script must be stored in the ZTerm
folder, and it must have the name you typed into the script editor.
If ZTerm can't find the script in the ZTerm folder, it will return
a "[" (left bracket) when you try to run the script with a macro.