mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-30 02:07:10 +01:00
- `contents` on a text frame or text range takes a number and writes it as `String(number)` gives it; other values still throw. - Setting a text range's `length` moves its end and leaves the text as it is (https://ai-scripting.docsforadobe.dev/jsobjref/TextRange/ lists it as read/write). A value that is not a whole number from 0 to the units left in the frame throws. Each read of a member that gives a range gives a new object, so setting one range's length leaves the others alone. - A text range has the paragraph attributes as well as the character attributes, so `range.justification` reads and sets the paragraphs the range touches. - `characters`, `words` and `paragraphs` have `add(contents, relativeObject?, insertionLocation?)` and `addBefore(contents)` (https://ai-scripting.docsforadobe.dev/jsobjref/Words/), which insert the text as one `text.editRange` and give its range. An added word is kept apart from its neighbors by a space and an added paragraph by a paragraph break; an empty string runs no command. - `app.textFonts.getByName` also finds a bundled face by its PostScript name. Docs: docs/mcp.md, docs/target-app-parity.md.