Learning in public — this reference is being written in the open. Unfinished pages are excluded from search engines.
paged.IDML Reference
The Paged PlatformScripting (paged.*)

Host functions

Every paged.* host function available to scripts, grouped by kind — generated directly from the engine's scripting catalog.

Tier: ProProIIIreference

In short the complete paged.* host surface, grouped by what each function does. Generated from the engine catalog — if the engine adds a function, it appears here automatically.

30 host functions, grouped by kind.

Read

FunctionReturnsSummary
paged.get(id, path)value | nullRead one property value of the addressed element.
paged.inspect(id)ElementProperties JSONFull property snapshot for one element (or storyRange).
paged.tree()SceneTreeNode[] JSONDocument hierarchy: spreads → pages → frames.
paged.stories()StorySummary[] JSONLoaded stories with selfId + characterCount + paragraphCount. The source of valid story ids.
paged.layers()LayerSummary[] JSONDocument layers.
paged.swatches()SwatchSummary[] JSONColour palette (selfId/name/kind).
paged.paragraphStyles()ParagraphStyleSummary[] JSONParagraph styles — the source of valid styleRefs for applyStyle.
paged.characterStyles()CharacterStyleSummary[] JSONCharacter styles.
paged.objectStyles()ObjectStyleSummary[] JSONObject styles.
paged.gradients()GradientSummary[] JSONGradients.
paged.colorGroups()ColorGroupSummary[] JSONColour groups.
paged.links()LinkSummary[] JSONPlaced-asset links.
paged.conditions()ConditionSummary[] JSONConditional-text conditions.
paged.conditionSets()ConditionSetSummary[] JSONCondition sets.
paged.collection(name)Summary[] JSONGeneric typed-collection read by name; unknown name → "[]" + warning.
paged.documentMeta()DocumentMeta JSONDocument metadata (name/creator/modified/page count).
paged.selection()ElementId[] JSONCurrent element selection.
paged.contentSelection()ContentSelection JSON | nullCurrent text caret / range.

Write

FunctionReturnsSummary
paged.set(id, path, value)boolSet a property (see settablePaths) on the addressed element. null clears.

Author (structural)

FunctionReturnsSummary
paged.insertText(storyId, offset, text)boolInsert plain text at a story body offset; \n splits paragraphs.
paged.deleteRange(storyId, start, end)boolDelete the [start, end) character range of a story.
paged.insertTextFrame(pageId, [t,l,b,r])boolCreate an empty text-pourable frame at page-local point bounds. Mints a story (id NOT returned — see constraints).
paged.insertFrame(pageId, [t,l,b,r])boolCreate an empty graphic (non-text) frame; the usual placeImage target.
paged.insertPage(afterPageId?)boolAppend a page after afterPageId (or at the end), inheriting the default master.
paged.placeImage(frameId, uri, fit?)boolPlace an image into a frame; fit is an optional fitting mode.
paged.applyStyle(storyId, start, end, styleRef)boolApply a paragraph/character style to a story range. Scope inferred from the ref prefix (CharacterStyle/… else Paragraph).
paged.createGroup([id, ...])boolGroup two-or-more elements; <2 valid members returns false.

History (undo/redo)

FunctionReturnsSummary
paged.undo()boolUndo the last mutation.
paged.redo()boolRedo the last undone mutation.

Console

FunctionReturnsSummary
console.log(...)undefinedAppend a line to the captured output log (also warn/error/info).