A run whose first step is an exact document.open still reads the open
documents' linked files then, so a link retargeted while the run is paused
gives a later command no read access to the new target. The open itself
still gets no linked-file access.
- `artboards.insert` returns nothing, as the scripting reference says; `add`
still returns the new artboard.
- `toString` of `Layers`, `GroupItems`, `CompoundPathItems` and `Artboards`
checks the collection as `typename` does, so a collection whose container
is gone throws instead of stringifying.
- The collections' `index` is described as returning their element class,
with an `itemKey` of any type. `PageItems.parent` and `PathItems.parent`
are described as any type, since scoped collections return a layer or
group.
- `hasSelectedArtwork` charges the selection and every node of the layer it
looks at to the script budget, also when it runs no command.
- A document made during the run whose active artboard the run chose is
reported when an artboard inserted before it moves it.
- Tests: a test-only counter of built art lists bounds the group loop test,
and the rejected-parameter checks of `object.newGroup` compare the whole
layer tree.
A script's addDocument with previewMode OverprintPreview failed: file.new
turned the view on with view.overprintPreview, which scripts may not
run. A script's file.new now asks for the view, and the run turns
Overprint Preview on when it ends; a run that fails does not turn it on.
The images a New Document profile's symbols, patterns and brushes link
to were read under the script's file gate, after the profile's own file
was read outside it, so images beside the profile showed only their
preview. They are now read the way the profile's file is, under the
automation roots in force.
- The 1000% scale limit applies only when Fit to Page is off, since the
scale factors are not used with it on.
- A script run clears the print command allowance when it ends, so a
panic inside print cannot leave file.print open to later runs.
- saveAs without options takes the format from the path the script
names, so a link at that path cannot change it.
- A File the host gives back charges its path to the heap.
- DocumentPreset.typename throws for a preset from an earlier run.
- Documents.addDocumentNoUI throws that it is not available yet.
- The print tests remove their folders when an assertion fails.
- PageItem.transform with changeLineWidths at the matrix's own scale sets
the stroke weight of a path whose paint the compound holds, as resize
does.
resize and transform set that weight by the scale itself, and an explicit
100 keeps the weights even for a scale within the tolerance of 100%.
- A changeLineWidths of 0 no longer matches a tiny scale; a positive value
is compared with the scale relative to its size.
- translate refuses an offset past the canvas only when the call moves the
object or a pattern it uses; a non-finite offset is still refused.
- Number conversion of preference text no longer trims U+0085, as
JavaScript does not.
- A real preference changes between 0 and -0: values are compared by their
bits in the setter and when the run's keys are merged.
- A clipboard.importSvg whose result cannot reach the script puts the
clipboard back.
- Moving an object works out its index without copying the list of its
siblings.
- The app's question before the external script warning turns off is known
by the confirm the app opened, not by its text, so a script's confirm
with the same text answers Yes through automation and is not translated.
- docs: only calls that move or reshape the object run
object.transform, and transform sets a compound member's stroke.
PathItem now takes PageItem's translate, rotate and resize: main's PathItem versions are removed, and resize on a path keeps main's changeLineWidths percent for the stroke weight. Hidden objects are refused, and an identity transform of an empty path checks its Transformation value and does nothing.
Document.rasterize, imageCapture, saveAs and exportFile send command
warnings to the Script Console, as app.open does. app.open no longer
inherits the linked-file permissions of documents open at the start of
the run. Rasterize by id refuses art on a locked artboard, and clip
bounds within floating-point error of whole pixels use that pixel count.
Capture sources leave out link paths the document cannot follow.
Async function activations now save and restore this_in_env, strict_class, new_target and this_env with main's Frame fields. The string spread test sets its fuel above what main's iterator-based spread takes.