• Prompt for a world Macro to bind (or <New Macro…>, which creates a fresh SCRIPT Macro and opens its sheet), then append a SCRIPT action def bound by the Macro's UUID to the document's system.actionDefs. Macro authoring is left entirely to Foundry's own UI.

    Parameters

    • doc: ActionOwner

      The document to add the action to.

    Returns Promise<void>