A script can now build a modal dialog with new Window("dialog", title)
and add() groups, panels, static text, edit fields, buttons, check
boxes, radio buttons, drop-down lists, list boxes, sliders and progress
bars. The engine checks the description and lays it out without
recursion, within VectorCraft's own limits (512 controls 16 deep, 1024
list items, 16 KiB a text, sizes clamped to 8192 px). Other control
types, palettes and resource strings throw that they are not available
yet.
- show() waits like alert, runs onClick, onChanging, onChange, onShow
and onClose in the run's fuel, and returns close(result)'s result, 1
for the default button or 2 for the cancel button, or 0 for the close
box. A show() inside a handler throws.
- In the app the dialog draws the controls where the engine placed
them, gives text still typed in a field before a click or a close,
and keeps its state while a handler runs. Enter clicks the default
button, Escape the cancel button, and Stop ends the run and puts the
documents back.
- A run over MCP or the command line takes a window answer: the steps
of one show(), each a click, a change or a close.
- The report lists each dialog with its controls, events and result;
vc.api.has("scriptui") is true.
Docs: docs/mcp.md (script.run), docs/target-app-parity.md.
docs/target-app-parity.md gets a line for the file.write report on a
File object's length, hidden and readonly and for the test that lists
every name the script host adds, with the tests that cover them. The
test's comment on vc no longer names another app.
Setting a File object's length truncates or pads the file, and setting
readonly or hidden changes it, but script.check reported no outside
category for those assignments. It now reports file.write and
filesWritten for them: plain and compound assignment, ++ and -- before
or after, and the property name as a string literal in brackets.
A new integration test lists every global and member the script host
adds to the JavaScript engine (the own properties of the global object,
of each object or function it holds and of each function's prototype,
compared with a plain engine) and fails when one has no row. Each name
that reaches outside the document has a probe script, and the test
checks that script.check gives it the expected outside id. vc is listed
as not checked: script.check reads scripts written for the reference
app's scripting, and what vc.run does depends on the command. The test
also checks that the checker lists every preprocessor directive the
host reads, through the new DirectiveName::ALL.
File object properties:
https://extendscript.docsforadobe.dev/file-system-access/file-object/