Variables and Parameterization
The config variable command creates variables that can be used to parametrize scripts. Use the config reset command at the beginning of a session/script to reset all values changed with the config command to their default settings.
config reset
config variable savedir "c:\tmp"
config variable heightvar 1000
config variable widthvar 2000
save image page %{savedir}\test.png height=%{heightvar} width=%{widthvar}