Skip to main content

Module policy

Module policy 

Source
Expand description

What a macro step may run. Macros run commands, so this keeps a macro from saving, opening or closing files, driving the app, running other macros, or reading and writing files without the person knowing. It goes by command id and the path parameter; the runner also runs every step except an approved file step inside the scripts’ file sandbox, so a command that touches a file under another parameter can’t either.

Enums§

Policy
Whether a command may run as a macro step.

Functions§

macro_policy
The policy for running command id with params as a macro step in a document with trust.
previewable
Whether the footprint dry run can preview a command. Solver can take long, so a dry run stops before it and reports the footprint as partial.
writes_file
Whether command id with params writes a file (an export or print given a path).