document_getState
Retrieve the InDesign editing state in one call: front document details, open document names, active layer, and selected object count. Use this instead of document info and open-document queries.
Instructions
Get the editing state in one call: the front document (name, path, page count, size, margins), the index of that document, the names of every open document, the active layer, and how many objects are selected. Prefer this over chaining document_getInfo and document_listOpen
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | No | Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document. |