set_page_item_script_label
Assign or clear a script label on InDesign page items using selection, page/item indices, or page number plus object ID.
Instructions
Overwrite the script label for targeted page items
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Selection mode: current selection, page/item indices, or page number plus object id | CURRENT_SELECTION |
| label | Yes | Script label to assign; use empty string to clear | |
| objectId | No | When mode=PAGE_NUMBER_AND_OBJECT_ID, InDesign object id of the page item | |
| itemIndex | No | When mode=PAGE_ITEM, index of the page item (zero-based) | |
| pageIndex | No | When mode=PAGE_ITEM, index of the page containing the item (zero-based) | |
| pageNumber | No | When mode=PAGE_NUMBER_AND_OBJECT_ID, page number using documentOffset+1 |