km_set_trigger_xml
Set or replace the XML of a specific trigger within a Keyboard Maestro macro, using the macro identifier and trigger index.
Instructions
Set/replace the XML of a specific trigger in a macro. Use km_get_trigger_xml first to understand the format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| macroIdentifier | Yes | Macro name or UID | |
| triggerIndex | Yes | Trigger index (1-based) | |
| xml | Yes | New XML for the trigger |