mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 02:35:37 +01:00
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().