Commit Graph
22197 Commits
Author SHA1 Message Date
dotCooCoo e46f697d50 Script check: a nested function that assigns an outer body's variable keeps the write reported
A function body's assignment was left out of the names other code may
change when any enclosing body had declared the name with var. A nested
function such as swap() { d = app.activeDocument; } called before
d.saveAs(f) then left d trusted as the script's own literal, and the
write went unreported. Only a name the innermost body declared now counts
as that body's own; plain, compound, increment and for-in assignments to
an outer body's variable all keep the write reported.
2026-11-28 06:10:24 -08:00
dotCooCoo b086db0fbb Script check: a function that sets saveAs or exportFile keeps the write reported
A function declared before an object literal could replace the
literal's saveAs or exportFile method when it ran later, and the check
still treated the method as the script's own and left the write out of
filesWritten. When any function body assigns a property of that name,
no variable's method of that name counts as the script's own.
2026-11-28 00:49:55 -08:00
dotCooCoo c58763daf6 Save: a refused file of a save without a path is named by its file name
A save of several files that the file access refuses before anything is
written gave the refused file's full path in its error, also when the
client did not give the path and the folder is outside the read roots.
The check before the write now names the file as the writer did, so
document.save with separateArtboards keeps the folder out of the error.
2026-11-28 00:39:33 -08:00
dotCooCoo 306c24c120 Scripts: absolute paths for relative document files, save warnings in the console
- Document.fullName of a file saved or opened under a relative path is
  the file in the process's working folder, as Document.path already
  was, and close with SaveOptions.SAVECHANGES saves it there.
- saveAs, exportFile, app.open and close with SAVECHANGES write each
  warning their command gives to the Script Console, starting with the
  method's name.
- The checker tests cover a with statement and an include between a
  literal and its call.
2026-11-28 00:05:10 -08:00
dotCooCoo 11d20c346f Scripts: refused saves call no writer, white matte, relative paths, checker reassignments
- A save of several files whose file access refuses one returns that
  error without calling the writer for any file, and the check before
  the write no longer lists the paths as written.
- ExportOptionsPNG24 and ExportOptionsJPEG accept matteColor at its
  default, white (red, green and blue 255); other colors still throw.
- Document.path of a file saved under a relative name is the working
  folder the engine wrote the file in.
- The script checker keeps reporting saveAs and exportFile on a
  variable holding the script's own object when a declaration follows
  a label, a function body assigns the variable, a member assignment
  writes a property of that name, code runs from text, or the script
  includes another file.
- docs/mcp.md: saveAs to a .vctemplate file without options writes a
  template copy and leaves fullName and the saved state as they were.
2026-11-28 00:05:10 -08:00
dotCooCoo 7dd6e9ae25 Merge main into feat/scripts-export-autocad 2026-11-27 22:40:38 -08:00
.CooCoo a346c170ee Merge pull request #9750 from dotCooCoo/fix/option-form-cancel-drafts-w4
Keep canceled tool option values out of the form
2026-11-27 22:14:42 -08:00
.CooCoo 303e2fd786 Merge pull request #9749 from dotCooCoo/fix/new-document-commit-choices-w4
Keep canceled New Document details out of the preset
2026-11-27 22:14:31 -08:00
.CooCoo 87c7c92e3b Merge pull request #9748 from dotCooCoo/fix/screen-formats-commit-choices-w4
Apply screen export format choices when confirmed
2026-11-27 22:14:19 -08:00
.CooCoo be4740d966 Merge pull request #9747 from dotCooCoo/fix/dxf-cancel-import-drafts-w4
Keep canceled DXF import choices out of the import
2026-11-27 22:14:07 -08:00
.CooCoo e145d44fa2 Merge pull request #9746 from dotCooCoo/fix/layers-inline-rename-after-revert
Discard unfinished Layers renames after File Revert
2026-11-27 22:13:56 -08:00
.CooCoo 7ae199dc5f Merge pull request #9745 from dotCooCoo/fix/duotone-cancel-color-controls-w4
Restore canceled Duotone color and curve edits
2026-11-27 22:13:45 -08:00
.CooCoo b6ed8fb522 Merge pull request #9744 from dotCooCoo/fix/blend-panel-commit-controls-w4
Apply Blend panel choices and numbers when confirmed
2026-11-27 22:13:33 -08:00
.CooCoo 939e53f35b Merge pull request #9743 from dotCooCoo/fix/adjustment-restore-canceled-controls-w4
Restore canceled adjustment controls
2026-11-27 22:13:21 -08:00
.CooCoo 4cd9e3e681 Merge pull request #9742 from dotCooCoo/fix/dimension-accept-controls-w4
Apply Dimension controls when confirmed
2026-11-27 22:13:10 -08:00
.CooCoo 9b5cee0205 Merge pull request #9741 from dotCooCoo/fix/graph-type-commit-controls-w4
Apply Graph Type choices when confirmed
2026-11-27 22:12:59 -08:00
.CooCoo 4a7407619c Merge pull request #9740 from dotCooCoo/fix/transparency-symbol-part-mask-controls
Keep mask controls with the whole symbol instance
2026-11-27 22:12:47 -08:00
.CooCoo ceb7882237 Merge pull request #9739 from dotCooCoo/fix/cjk-settings-opening-text-selection
Keep CJK settings with the opening text selection
2026-11-27 22:12:35 -08:00
.CooCoo de09f0bcc2 Merge pull request #9737 from dotCooCoo/fix/freehand-tip-preserve-other-component
Preserve the untouched Freehand tip component
2026-11-27 22:12:24 -08:00
.CooCoo 99bb78b9f0 Merge pull request #9736 from dotCooCoo/fix/path-options-after-revert
Retire Simplify and Offset Path options after File Revert
2026-11-27 22:12:12 -08:00
.CooCoo 1c33c5584e Merge pull request #9734 from dotCooCoo/fix/artboard-options-committed-dimensions
Keep pending Artboard Options when typing dimensions
2026-11-27 22:12:01 -08:00
.CooCoo 38663e7ace Merge pull request #9733 from dotCooCoo/fix/relink-cancel-scope
Restore the selected-instance scope after Relink Escape
2026-11-27 22:11:50 -08:00
.CooCoo 6bdd1230ad Merge pull request #9732 from dotCooCoo/fix/average-dialogs-opening-drawing
Keep Average path approvals with their opening drawing
2026-11-27 22:11:38 -08:00
.CooCoo a8beb0310a Merge pull request #9731 from dotCooCoo/fix/browser-place-distinct-sources-w4
Keep distinct browser Place files that share a name
2026-11-27 22:11:26 -08:00
.CooCoo 70dc0cfcc7 Merge pull request #9730 from dotCooCoo/fix/actions-restore-canceled-selectors
Restore Action Set, Function Key, and Color after Escape
2026-11-27 22:11:15 -08:00
.CooCoo ea2c22dae1 Merge pull request #9728 from dotCooCoo/fix/properties-corner-commit
Apply selected path corner kinds only after acceptance
2026-11-27 22:08:52 -08:00
.CooCoo f237a3500e Merge pull request #9727 from dotCooCoo/fix/properties-commit-units
Apply a Properties Units choice only after acceptance
2026-11-27 22:08:35 -08:00
.CooCoo 183fd4ab0d Merge pull request #9725 from dotCooCoo/fix/status-bar-committed-navigation
Wait for an accepted status bar Artboard or Rotation choice
2026-11-27 22:08:23 -08:00
.CooCoo 1721cf77e8 Merge pull request #9724 from dotCooCoo/fix/preflight-committed-output-resolution
Keep Custom PPI when canceling a Preflight Output choice
2026-11-27 22:08:12 -08:00
.CooCoo d6b6ff3d21 Merge pull request #9723 from dotCooCoo/fix/paragraph-committed-dropdown-formatting
Apply Paragraph menu formatting only after an accepted choice
2026-11-27 22:08:00 -08:00
.CooCoo d240eaddf1 Merge pull request #9722 from dotCooCoo/fix/nearest-swatch-library-popup-cancel
Keep the Nearest Swatch library when canceling its popup
2026-11-27 22:07:48 -08:00
.CooCoo 9fd370aaf2 Merge pull request #9721 from dotCooCoo/fix/profile-drop-source-after-revert
Retire pending drops after the source drawing is reverted
2026-11-27 22:07:37 -08:00
.CooCoo ea02f0f7b6 Merge pull request #9720 from dotCooCoo/fix/transparency-symbol-part-display
Show selected symbol part transparency
2026-11-27 22:07:26 -08:00
.CooCoo a80c0f5919 Merge pull request #9719 from dotCooCoo/fix/kinsoku-accept-choice
Preserve the current Kinsoku choice after Escape
2026-11-27 22:07:14 -08:00
.CooCoo ac916d8d9f Merge pull request #9718 from dotCooCoo/fix/ui-image-trace-draft-retention
Release Image Trace drafts when their drawing closes
2026-11-27 22:07:02 -08:00
.CooCoo 9821e8f6c4 Merge pull request #9717 from dotCooCoo/fix/artboard-committed-name-and-fill
Accept Artboard Properties Name and Fill changes on commit
2026-11-27 22:06:51 -08:00
.CooCoo d8b6848bc8 Merge pull request #9729 from dotCooCoo/fix/svg-script-draft-file-revert
Discard unfinished SVG Interactivity scripts after File Revert
2026-11-27 21:58:42 -08:00
.CooCoo 82d9ff0182 Merge pull request #9867 from dotCooCoo/fix/script-prototype-write-test
Scripts: the prototype-write test fails when a write to PathItem.prototype succeeds
2026-11-27 21:54:33 -08:00
.CooCoo a95a52e06a Merge pull request #9866 from dotCooCoo/fix/script-preset-field-size
Scripts: DocumentPreset settings refuse a value of the wrong kind or size
2026-11-27 21:54:22 -08:00
.CooCoo d7b78f4065 Merge pull request #9865 from dotCooCoo/fix/floating-window-copy
Edit: Copy in a floating window copies the art while a label elsewhere has text selected
2026-11-27 21:54:10 -08:00
.CooCoo 8f7d18bb79 Merge pull request #9864 from dotCooCoo/fix/artboard-revolve-spacing-tokens
Dialogs: Artboard Options and the light editor space their groups with the gap tokens
2026-11-27 21:53:58 -08:00
.CooCoo a27235c85c Merge pull request #9863 from dotCooCoo/fix/corner-radius-labels-start
Transform: the corner radius labels start their column
2026-11-27 21:53:47 -08:00
.CooCoo d3ad4332f4 Merge pull request #9105 from dotCooCoo/feat/js-es2015-for-of-destructuring
JavaScript: for-of loops and destructuring in ES2015 realms
2026-11-27 21:52:53 -08:00
.CooCoo 00a7bcc204 Merge pull request #9869 from dotCooCoo/fix/ci-cache-clear-save-status
CI: the cold cache clear fails when the warm leg's save does not finish
2026-11-27 21:50:52 -08:00
.CooCoo fd649820ea Merge pull request #9783 from dotCooCoo/fix/smart-punctuation-revert
Smart Punctuation: refuse a draft from before File > Revert
2026-11-27 21:48:59 -08:00
.CooCoo 8f8cec62d3 Merge pull request #9799 from dotCooCoo/fix/turkish-ppi-rows
i18n: Turkish PPI rows read PPI instead of a producer price index
2026-11-27 21:48:47 -08:00
.CooCoo 3e6b0dd094 Merge pull request #9849 from dotCooCoo/feat/cmx-export-vc
File formats: export .cmx files
2026-11-27 21:45:28 -08:00
.CooCoo a3e825c36f Merge pull request #9827 from dotCooCoo/fix/artboard-control-name-commit
Artboards: the Control bar's Name field renames on Enter or Tab and Escape cancels
2026-11-27 21:45:16 -08:00
.CooCoo 77c9254b5d Merge pull request #9826 from dotCooCoo/fix/free-distort-untouched-axis
Free Distort: an arrow nudge keeps each corner's other coordinate exact
2026-11-27 21:45:04 -08:00
.CooCoo 5fd4d55fd6 Merge pull request #9841 from dotCooCoo/chore/xtask-cache-units
CI: cargo xtask ci warm records its build units for the cache trim
2026-11-27 21:44:52 -08:00