Commit Graph
69 Commits
Author SHA1 Message Date
dotCooCoo 74e572c8c5 Merge main into fix/script-page-item-edits
# Conflicts:
#	crates/engine/src/script/dom/paths.rs
2026-11-30 19:56:24 -08:00
dotCooCoo fe89d3f81e Scripts: list rebuilds count against the run, a stop is not masked, bad answers throw at the call
- pageItems, pathItems and textFrames build their list of a document again
  after every edit. The rebuild walked the whole document without counting
  anything against the run, so a loop that edits and reads a collection in a
  large document did unbounded host work. A rebuilt list now counts 16 bytes
  per object (as the selection's list does) against the run's host-call
  allowance, and the path and type lists count the page items they scan.
- An edit's own ordinary error was returned ahead of a stop (an uncatchable
  Abort) from putting back the selection or switching back to the active
  document, so a script could catch it and go on. A stop now comes first.
- An answer to a waiting call that could not be read as a value (nested too
  deep, too many entries) ended the run instead of being thrown at the call.
  It is now thrown there, where the script can catch it, and a ScriptUI dialog
  that waited for the answer stops showing, as when its host call fails.
- The selection cost test also compares the host calls, under the same
  64 KiB limit for both documents.
2026-11-30 15:54:45 -08:00
dotCooCoo 4082035b82 Scripts: locked artboards stop path edits, and move and zOrder respect clipping paths
- PathItem point, paint, stroke and transform changes on a path on a locked
  artboard now throw `Cannot edit` and change nothing, as the PageItem
  setters do. `pathItems.removeAll()` deletes nothing when a path is on a
  locked artboard, as `pageItems.removeAll()` does; it used to delete them.
- `move` and `duplicate` with `PLACEAFTER` and the clipping path of a clip
  group or clipping layer as the relative object throw instead of putting
  the object above the clipping path, or reporting success without moving it.
- `zOrder` counts the art above a clipping path and below the layer's ruler
  guides, as the Arrange commands do, so a method that leaves the object
  where it is runs no command.

Docs: docs/mcp.md.
2026-11-30 15:51:02 -08:00
dotCooCoo ed0859d0d0 Scripts: kept-default option enumerations and refusal of non-UTF-8 real paths
The enumerations whose default member an option keeps (OutputFlattening,
CompressionQuality, the PDF color, compression, mark and security enums,
and the SVG encoding, DTD, CSS and font enums) are now defined, so a
script that sets an option to its default no longer throws a
ReferenceError; another member still throws as not available yet.

saveAs, exportFile, app.open and close with SAVECHANGES refuse a path
whose real file name is not valid UTF-8 instead of writing to or opening
a file named with a lossy copy of it.
2026-11-30 07:51:17 -08:00
dotCooCoo f4c911d4d3 Scripts: open options with an importer, null export options and close checks for files that keep every artboard
- document.open refuses page, cropTo, pages and crop when a named importer reads the file (linkPages
  still uses the built-in reader).
- exportFile with explicit null options throws a TypeError for GIF, PNG8 and TIFF too.
- close(SaveOptions.SAVECHANGES) saves a modern .ai or .ait file and an SVG file with Preserve
  Editing whatever range was remembered; a range the save refuses still refuses.
- The script checker keeps a try statement's catch and finally, and an else after a nested
  do-while, inside the loop body; a line break after a label does not start a new statement; a
  this assignment in a function that hides a global clears the global's saved methods; and
  holder.d['saveAs'] = ... no longer counts as a write to d.
- docs/mcp.md describes which files keep every artboard on close.
2026-11-30 03:36:01 -08:00
dotCooCoo 82d4ec4336 Scripts: explicit crop boxes, EPS close-with-save and writer receivers checked per call
- document.open with an explicit PDFCROPBOX crop opens on the crop box
  of a file with editing data; the default keeps the trim box and bleed.
- Closing with save changes keeps an EPS document's artboard range, since
  the EPS file holds the whole document.
- The script checker treats a writer receiver captured from an outer
  scope as able to change before each call, and finds the loop that holds
  a call with a binary search instead of a scan of every loop.
2026-11-29 19:01:56 -08:00
dotCooCoo f99ef023ad Scripts: close checks the artboards the saved file keeps; saves report warnings
Document.close(SaveOptions.SAVECHANGES) now judges artboard loss by the
file the save writes. A PDF last saved with useArtboards: false is
refused, since it holds one page of the art's bounds. A native or .ai
file saved with separateArtboards is saved and closed whatever its range
names, since the range picks only the separate files; a version 7 .ai
file keeps the range check.

Document.saveAs, Document.exportFile, app.open and the save that
close(SaveOptions.SAVECHANGES) runs write each warning of their command
to the console after the method's name (for example "saveAs: SVG keeps 1
of the document's 2 artboards ...").

Script Check reports a file write for a saveAs or exportFile call on the
script's own object when the variable is assigned in a loop around the
call, since a later iteration may run the call on a document. Loop bodies
without braces follow if, else and line breaks, and a variable of the
same name that a function declares is kept apart.

A test shows that a waiting point change counts as unsaved for
Document.saved and close().
2026-11-29 16:49:37 -08:00
dotCooCoo b1e9a4cbb3 Merge main into feat/scripts-api-d6-save-export-open
main's Document member list held saveAs and close as members that are not
available yet; this branch's save_open members implement them, so the
merge drops them from that list and keeps main's other entries. The
script host test lists take main's members together with this branch's
open, userInteractionLevel, fullName, path, saved and option classes,
and the heap accounting keeps main's ModuleNamespace arm beside the
FsEntry string arm.
2026-11-29 14:13:21 -08:00
dotCooCoo 87b5aef639 Scripts: point removals keep the selection, defaults and batching right
Follow-up to #9288.

- Removing the last anchor of a closed path with its closing segment
  selected also deselects the first anchor, the segment's other end.
- Removing a point puts back new art's paint, so a default stroke width
  a script set still applies to the next path it draws.
- A removal that leaves the direct selection as it was waits with the
  other point changes, unless every remaining anchor is now selected,
  the selection refers to points that are gone, or the path is in an
  Objects on Path group.
- Reading the points of a path first writes the waiting point changes
  of another path in the same Objects on Path group.
- Writing a path in an Objects on Path group checks the other tracked
  paths in the outermost such group, so their PathPoint handles go stale
  when the group moves them, even after an undo.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-29 10:24:53 -08:00
dotCooCoo 7a71837dea Scripts: keep new-art defaults and direct selections through path edits
- PathPoint.remove() renumbers the direct-selected anchors and segments
  after the removed point, and drops the removed anchor and the selected
  segments it ended, through selection commands after the points are
  written. A removed anchor no longer stays selected, and the same index
  no longer selects a different point.
- pathItems.add() reads new art's paint after the target document is
  active, so a path added to a document in the back keeps the stroke
  that document's selection gives new art.
- Paths a script draws put new art's paint back afterwards, so a
  defaultStrokeWidth the script set applies to every path it draws, not
  only the first.
- appearance.setNewArt refuses a fill or stroke paint with a setting a
  paint does not take, such as opacity, instead of applying the rest.
2026-11-29 05:51:46 -08:00
dotCooCoo 4b7ac69692 Scripts: fix path handles after main's revert count and review findings on path edits
PathItem handles carry the document's revert count, as page item
handles on main do, so path members find their path again.

setEntirePath and the path point setters throw a RangeError for a point
off the canvas. Opening a path whose closing segment is selected keeps
the edit. pathItems.add() leaves new art's paint as it was with New Art
Has Basic Appearance off. addDocument reports settings the built-in
preset refuses. appearance.setNewArt refuses a swatch that is not a
name. Writing one path's points looks only at that path afterwards.
2026-11-29 00:42:20 -08:00
dotCooCoo 0bd735f53d Merge main into feat/scripts-doc-defaults 2026-11-28 23:20:21 -08:00
dotCooCoo 043650d794 Scripts: tighten save, open and close edge cases
- saveAs picks the encoder from the requested name, so a link to a file of
  another format writes the format the name asks for.
- fullName, path and close(SaveOptions.SAVECHANGES) resolve a relative saved
  path against the working directory.
- close(SAVECHANGES) accepts an artboard range that covers every artboard and
  keeps the document open when the save would drop artboards.
- app.open keeps the requested file name, rejects a file over 128 MiB before
  reading it, applies the requested color space to plug-in imports, and
  rejects PDF options for files that are not PDF content; null PDF options
  keep their defaults.
- Explicit null options throw; assigning the current Document.saved value
  runs no command; Document.path reflects as Folder or string.
- An implicit multi-file save names no refused path in its error.
- The script checker counts SAVECHANGES only on SaveOptions and keeps write
  warnings for receivers that evaluated code can rebind.
2026-11-28 21:21:56 -08:00
dotCooCoo 0d5850f616 Scripts: build on main's optional item bounds and painting-tool check
main's item_rect now gives no bounds for an empty object, and the
Live Paint Bucket check became tool_paints for the fill and the
stroke. rotate and resize leave a path without bounds unchanged, and
appearance.setNewArt uses the same inheritance test as paint.rs.
2026-11-28 18:41:43 -08:00
dotCooCoo d471933b0d Merge main into feat/scripts-doc-defaults 2026-11-28 18:11:42 -08:00
dotCooCoo 44c89a7912 Merge main into feat/scripts-api-d4b-text-styles 2026-11-28 18:11:24 -08:00
dotCooCoo 52c731bb2f Merge main into feat/scripts-api-d6-save-export-open 2026-11-28 18:10:43 -08:00
dotCooCoo 4999199bd5 Merge main into feat/scripts-api-d4c-threads-stories
# Conflicts:
#	crates/engine/src/script/dom.rs
#	crates/engine/src/script/dom/text.rs
#	crates/engine/src/tests.rs
#	crates/engine/src/tests/script_text.rs
#	crates/engine/tests/it/script_host_vs_scriptcheck.rs
#	docs/gaps.md
#	docs/mcp.md
#	docs/target-app-parity.md
2026-11-28 17:15:13 -08:00
dotCooCoo 328c6221e1 Merge main into feat/scripts-api-d4b-text-styles 2026-11-28 16:28:02 -08:00
dotCooCoo 31844b57dd Merge feat/scripts-api-d4-text into feat/scripts-api-d4b-text-styles 2026-11-28 16:13:51 -08:00
dotCooCoo 1d1c9464cf Merge main into feat/scripts-api-d4-text 2026-11-28 09:12:20 -08:00
dotCooCoo 269024e088 Merge main into feat/scripts-api-d4c-threads-stories
Main gave every class member a reflect type and page item handles a revert
count. The type classes now declare a type for each member, their members
that are not available yet use the unavailable form, TextFrame takes main's
contentVariable, and a text range looks its frame up at the document's
current revert count.

Review fixes:
- A text range length that ends inside a surrogate pair moves its end out
  to the end of the character.
- textFrames.removeAll() refuses type on a locked artboard, as
  pageItems.removeAll() does.
- Joining a story's text across its frames counts toward the run's data
  limit.
- A test shows a script that catches a refused link goes on with the links
  unchanged.
2026-11-28 03:35:11 -08:00
dotCooCoo 39c5e98a3e Scripts: refuse unsafe close saves and refused multi-file writes up front
- A save of several files whose file access refuses one of them returns
  the refusal before any file goes to the writer, so a writer that does
  not check the file access writes nothing.
- close(SaveOptions.SAVECHANGES) throws before writing, and leaves the
  document open, when the document's last save named some of its
  artboards, since saving with those options again could leave changes
  out of the file.
- The script check no longer treats an object literal's saveAs or
  exportFile as the script's own when a function body assigns the
  variable without declaring it, or when the script assigns it as a
  property of this (the global object in global code and in a function
  called without a receiver).
- The close-with-SAVECHANGES format test reads the saved PDF and checks
  that it holds the change made after the first save.
- docs/mcp.md limits the "none of them is written" sentence for SVG
  linked images to refusals found before the first write, and documents
  the new close refusal.
2026-11-28 03:15:22 -08:00
dotCooCoo e75b26cffc Merge main into feat/scripts-reflection 2026-11-27 23:38:58 -08:00
dotCooCoo f56fcd99f6 Merge main into feat/scripts-reflection 2026-11-27 22:13:50 -08:00
dotCooCoo 13c44353cf Merge main into feat/scripts-api-d4b-text-styles 2026-11-27 22:13:49 -08:00
dotCooCoo fc48b42f71 Merge main into feat/scripts-api-d4c-threads-stories
# Conflicts:
#	crates/engine/src/script/dom.rs
#	crates/engine/src/tests.rs
#	crates/engine/tests/it/script_host_vs_scriptcheck.rs
#	docs/mcp.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-27 22:12:29 -08:00
dotCooCoo 887c67a8f1 Merge main into feat/scripts-api-d6-save-export-open 2026-11-27 21:58:18 -08:00
dotCooCoo d7425b47d3 Merge main into feat/scripts-api-d4-text
# Conflicts:
#	crates/engine/src/script/dom.rs
#	crates/engine/src/tests.rs
#	crates/engine/tests/it/script_host_vs_scriptcheck.rs
#	docs/mcp.md
#	docs/target-app-parity.md
2026-11-27 21:57:48 -08:00
dotCooCoo c97b5eac1e Merge main into feat/scripts-api-d7a-variables 2026-11-27 21:57:44 -08:00
dotCooCoo 27c3f8cb29 Scripts: variables follow the topmost-first page item order and the gate's linked-file argument 2026-11-26 00:44:53 -08:00
dotCooCoo 46c3e4bcff Scripts: text and thread tests read frames topmost first, as pageItems lists them 2026-11-26 00:43:17 -08:00
dotCooCoo db059c1be4 Merge main into feat/scripts-api-d4-text 2026-11-26 00:22:24 -08:00
dotCooCoo e4992df1ef Merge feat/scripts-api-d4-text into feat/scripts-api-d4c-threads-stories 2026-11-26 00:06:20 -08:00
dotCooCoo 7baaac6391 Scripts: read a new path's id from the command's own result
pathItems.add() and the shape constructors read the new path's id from
the script's copy of the command result, where it is a number. An id
above 2^53 was rounded there, so the constructor could return another
path, or fail after the path was made. They now read the id as an
integer from the command's result.
2026-11-25 18:24:19 -08:00
dotCooCoo f5afa0b84a Scripts: review fixes for the document defaults and the object model
- appearance.setNewArt is listed among the commands a plug-in may call, so
  every_command_is_reviewed passes.
- appearance.setNewArt refuses `tint` on a pattern that has no swatch entry,
  and its help and docs/mcp.md say an omitted `weight` keeps the stored weight.
- The dash checks of appearance.setNewArt, strokeDashes and
  defaultStrokeDashes share one helper.
- defaultStrokeWidth, defaultStrokeMiterLimit and defaultStrokeDashOffset
  compare exactly, so a slightly different value reaches new art.
- An RGB default in a CMYK document is compared in the document's color mode,
  and a color read back from a path or a default (a Gray too small for its
  value to name) assigns back without a command.
- addDocument starts from the profile's built-in first preset even when a
  saved preset has the same name.
- A saved preset's rows are read as at most 1000.
- The page item and path lists are kept for each open document, the
  selection list stops at its limit, the typename of a removed PathPoint and
  of a stale PathPoints or PathItems throws, and an item edit whose
  selection cannot be restored is undone with it.
- A path's subpath starts are counted once and kept while its points keep
  their layout, so reading or setting each of its points in turn no longer
  walks every subpath for each point.
- A run that ended while waiting for a growth answer is checked against its
  allowance again before it is kept.
- docs/mcp.md says which file limits apply to reading a profile's file.
2026-11-25 15:07:36 -08:00
dotCooCoo 1e382904fa Merge feat/scripts-api-d2-paths-colors into feat/scripts-doc-defaults 2026-11-25 00:32:34 -08:00
dotCooCoo e97b0b49ae Scripts: Document default fill and stroke members and scaleFactor
A script that read or assigned a document's defaultFillColor,
defaultStrokeWidth or another default paint member, or read scaleFactor,
got undefined. The twelve default members now read and set the fill,
stroke and stroke options of the next object drawn, and scaleFactor
reads 1.

- appearance.setNewArt sets new art's fill, stroke and stroke options
  whatever is selected, leaving the selection, its art, the active proxy
  and Recent Colors as they were. Every value is checked before anything
  changes.
- The default members run it only when the value changes. A bad value
  throws an error with nothing changed.
- paths.rs shares its dash length checks with defaultStrokeDashes.
2026-11-25 00:31:11 -08:00
dotCooCoo 3977aa6268 Merge feat/scripts-api-d1a-app-documents into feat/scripts-api-d6-save-export-open
Brings in main through #9019's branch. The PDF presets now come from the shared pdf crate, so a bracketed preset name is looked up with the app's name and "Default" names its default preset.
2026-11-24 22:16:48 -08:00
dotCooCoo 3ef4b97983 Scripts: closing with SAVECHANGES keeps the document's format, and an empty artboardRange is refused
Document.close(SaveOptions.SAVECHANGES) now saves in the format the document was last saved in, so a PDF saved to a file whose extension names another format stays a PDF. An artboardRange with no parts, such as ',' or ' , ', now throws, as a range used for the save does.
2026-11-24 21:58:26 -08:00
dotCooCoo a278d6a837 Scripts: a path in a selected group reads as selected with its own picks too
When a group or compound path is selected together with one of its
paths, and that path also has its own anchor or segment pick,
selectedPathPoints and PathPoint.selected now report the path as
selected as a whole, as docs/mcp.md says for a path in a selected
group. Before, the path's own pick was reported instead.
2026-11-24 21:51:12 -08:00
dotCooCoo e8a0aa6ba4 Scripts: documents give their file, folder and saved state, close, and save several artboards
- Document.fullName is a File for the document's file, and Document.path a
  Folder for its folder. A document without a file has a fullName of a
  File for its name in Folder.current and a path of "". Both throw
  `Script file access denied` with the document's name when the
  automation read roots do not allow the file.
- Document.saved reads whether the document has unsaved changes. Setting
  it runs the new command document.setSaved, which records the document
  as saved or as changed without saving it and adds no undo step.
- Document.close(saveOptions) closes a document without unsaved changes
  with any SaveOptions value. With unsaved changes,
  SaveOptions.DONOTSAVECHANGES closes it without them, and
  SaveOptions.SAVECHANGES saves them first with file.saveAs, in the
  format the file's extension names and after the write-access check
  saveAs makes, and throws for a document without a file (a converted
  or recovered one included). SaveOptions.PROMPTTOSAVECHANGES, the
  default, throws, since a script cannot show the prompt.
- The script checker reports SaveOptions.SAVECHANGES under filesWritten
  wherever the script reads it.
- A pDFPreset in square brackets, such as [Smallest File Size], names
  the built-in preset of the name inside them.
- artboardRange takes a whole number from 1 as well as a string; any
  other number throws.
- With saveMultipleArtboards true, a .ai or EPS save also writes each
  artboard of the range to a file of its own. Without it the range is
  not used, but text that is not a range of artboard numbers throws.

Document page: https://ai-scripting.docsforadobe.dev/jsobjref/Document/
2026-11-23 19:01:40 -08:00
dotCooCoo 496ac0c785 Scripts: state the segment and no-change rules of selected and guides
Assigning PathPointSelection.ANCHORPOINT to a point of a path with
selected segments replaces that path's segment selection, as
select.anchorsMany does for any anchor pick on such a path; the module
doc, the setter's doc and docs/mcp.md now say so. docs/mcp.md also says
that changing PathPoint.selected adds no undo step, and that assigning
guides the value a path already has runs no command, which is why a
hidden, locked or compound-member path, or locked guides, throw only
for the other value. The touched lines of the PathItem paragraph are
rewrapped to its width.

New tests cover a point added by the script and selected in the same
run, selectedPathPoints after an added point, a path with a selected
segment, and assigning guides its current value while guides are
locked.
2026-11-23 13:14:01 -08:00
dotCooCoo fbc057f8b0 Scripts: points of a path in a selected group read as selected
PathPoint.selected and PathItem.selectedPathPoints now count a path as
selected as a whole when a group or compound path that holds it is
selected, as the canvas shows its anchors. Assigning
PathPointSelection.NOSELECTION to a point of such a path throws an
error that says it is not available yet, and ANCHORPOINT on it runs no
command, so the selection is not left holding both the group and one
of its paths.

Selecting a point of a guide while guides are locked throws an error
instead of running a selection that the guide lock undoes.

Assigning guides = false on a path that cannot be selected (outside
the isolated object) throws Cannot edit, as guides = true does.

Reading PathPoint.selected no longer writes the point changes waiting
for its path unless they add or remove points, so a loop that reads
selected and moves the selected anchors writes the path once.
2026-11-23 13:14:01 -08:00
dotCooCoo dd74879624 Scripts: guides refuse compound members and locked guides in both directions
Assigning PathItem.guides on a path inside a compound path made every
path in that compound a guide, because Make Guides acts on the compound
that holds a selected member; it now throws an error that says it is not
available yet, as duplicate and zOrder do for compound members. While
guides are locked, assigning false threw and assigning true succeeded;
now either value throws when it would change the path. A path that
cannot be selected, for example one outside the isolated group or on a
locked artboard, throws Cannot edit before any command runs. Assigning
the value a path already has runs no command and throws no error. These
are VectorCraft's own rules, and docs/mcp.md lists them with the other
rules of its own.

Tests cover a compound path member, a clipping path, a locked and a
hidden path, the guide lock in both directions, a path in a group of
two, and the TypeError name for a value that is not a boolean.
2026-11-23 13:14:01 -08:00
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
dotCooCoo 262090d75a Scripts: path points read and set their selection, and guides can be assigned
PathPoint.selected and PathItem.selectedPathPoints threw an error that
said they were not available yet, and PathItem.guides could only be
read. selected now reads PathPointSelection.ANCHORPOINT for a selected
anchor point and NOSELECTION otherwise, and assigning either adds or
removes the point with select.anchorsMany, keeping the other selected
objects and anchors. Every point of a path selected as a whole counts
as selected. Direction handles cannot be selected on their own, so the
handle values throw an error. selectedPathPoints lists the selected
points in pathPoints order. Assigning guides makes the path a guide or
a path again with view.guides.make or view.guides.release, keeping the
selection; a value that is not a boolean throws a TypeError, and a
clipping path cannot be made a guide. A value the point or path already
has runs no command.

https://ai-scripting.docsforadobe.dev/jsobjref/PathPoint/
https://ai-scripting.docsforadobe.dev/jsobjref/PathItem/
2026-11-23 11:06:19 -08:00
dotCooCoo 9c636b9036 Scripts: a character style applied to an empty frame styles text set later
CharacterStyle.applyTo returned early on any empty range, so on an empty
text frame it never reached charStyle.apply, which restyles the stored
runs of empty text. It now passes an empty frame through and keeps the
no-op only for an empty range inside text.
2026-11-22 03:42:21 -08:00
dotCooCoo 8e23d74985 Scripts: textFrames.removeAll() refuses type on a locked artboard
textFrames.removeAll() now stops with the same error as pageItems.removeAll()
and PageItem.remove() when a type object sits on a locked artboard, and
deletes nothing.
2026-11-22 03:42:20 -08:00
dotCooCoo f31cb42fd8 Scripts: unlisted save, export and open options throw, and an object's own saveAs is not a file write
- saveAs, exportFile and app.open throw "<Class> has no option <name>" for a
  property their option class's help page does not list, instead of leaving it
  out. An undefined property is still left out, and PDFFileOptions also takes
  its read-only typename and parent.
- The script checker no longer reports a file write for saveAs or exportFile
  called on a variable holding the script's own object literal that defines
  that method, with `.` or in brackets. It reports it again once the method is
  assigned or deleted, the object is indexed with a computed key, or another
  name may hold the object.
- The read-only file test checks the open-document grant on its own, with no
  folder scope that also covers the file.
2026-11-22 01:49:59 -08:00