Files
vectorcraft/crates/engine/tests/it
dotCooCoo 48a09ccae3 Scripts: Document.exportForScreens writes artboards, assets or the document into a folder
Document.exportForScreens(exportFolder, exportFormat, options?, itemToExport?,
fileNamePrefix?) runs document.exportForScreens with one format row. The
option classes ExportForScreensOptionsJPEG, ExportForScreensOptionsPNG24,
ExportForScreensOptionsPNG8, ExportForScreensOptionsWebOptimizedSVG and
ExportForScreensPDFOptions, ExportForScreensItemToExport and the enumerations
they use follow the public reference pages. An omitted options object takes a
new one's defaults; a bad argument, an options object of another class and an
item that names nothing throw before anything is written.

The folder gets the same write-access check as a File opened for writing: a
folder outside the script's folders is refused, and so is an existing file.
A prefix character that a file name may not hold is written as "-".

A Folder object passed to a host method now carries its path, as a File does;
before, it arrived as an empty object. The script checker counts
exportForScreens under filesWritten.

Docs: docs/mcp.md, docs/target-app-parity.md, docs/gaps.md.
2026-11-25 07:05:03 -08:00
..