Files
vectorcraft/docs
dotCooCoo 1a21617e73 Scripts: text ranges take a number as contents, a new length and paragraph attributes
- `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.
2026-11-23 11:25:06 -08:00
..
2026-11-20 05:45:14 +07:00
2026-11-19 15:12:20 +07:00
…
2026-11-20 06:07:45 +07:00