Skip to content

Latest commit

 

History

History
662 lines (570 loc) · 46.1 KB

CHANGELOG.md

File metadata and controls

662 lines (570 loc) · 46.1 KB

Changelog

New features
  • 11/12 new view/ZoomTo300Percent: Zooms current layout window to 300%
  • 11/14 upd clean/DefaultPrefs: Added scaling options
  • 11/14 new layout/PageMarginsTo5Percent: Sets margins to 5% of the visible area for all document pages
  • 11/17 new layout/PageMarginsTo5Percent: Now it also detects the HW value; renamed to PageMarginsFromScriptName
  • 11/21 new cleanup/DefaultLayers: Added top/bottom keywords for layers order
  • 12/04 new lib/unique: Added a helper function to get unique array elements
  • 12/17 upd lib/getBounds: Added safety area
  • 12/17 new lib/naturalSorter: Natural sorting of string arrays
Updates
  • 11/15 upd misc/QRBatch: Filterd list to display only queueable lines
  • 11/19 upd cleanup/DocCleanup: Convert empty frames to generic frames only when they have no fill/stroke
  • 11/24 ref misc/QRBatch: Moved 'Refresh' before 'Browse'
  • 11/24 upd misc/QR, QRBatch: Slightly increased the distance between the code and the edge of the page (4 mm left, 3 mm below)
  • 11/25 upd lib/debug: Replaced the context argument with an auto call stack; renamed to dbg
  • 12/04 brk lib/ParseDataFile and related: Refactored to return parsed records as raw strings; moved data validation/converting to native objects to a separate step; see lib/README.md for details
  • 12/09 upd layout/PageSizeFromFilename, export/MarkVisibleArea: Added support for wildcards in layer names
  • 12/09 upd lib/dbg: Reduced types to just one: appending the message; also, renamed to log
  • 12/23 upd view/ZoomTo...: Include slug when preview mode is off
  • 12/23 upd lib/getPageItem: Include all page items
  • 12/23 upd lib/log: Shorten display of anonymous functions to 'anon'
  • 12/23 upd export/QuickExport: Don't display preferences reset warning on first run
  • 01/31 upd lib/fitTo: Swapped checks with exceptions; other minor fixes
Removed features
Bug fixes
  • 11/17 fix export/QuickExport: Fixed auto-suffix hack to chain layer names (d'oh!)
  • 11/19 fix cleanup/DocCleanup: Trimming ending spaces for center- or bottom-aligned text frames inadvertently moved the text; fixed
  • 12/09 fix cleanup/DefaultLayers: Don't move a layer to top/bottom if it's already there
  • 12/13 fix export/QuickExport: Added a check for missing queued documents
  • 12/13 fix lib/moveToLayer: Fixed an infinite loop when resolving item's parent spread
  • 12/17 fix misc/QR, QRBatch: Also set left justification on label
  • 01/05 fix fix lib/parseDataFile:compactRelPath: Resolve multiple /../ segments by recursion
  • 01/29 fix cleanup/DocCleanup: Show/hide layers: updated safety area name
Miscellaneous
  • 11/11 ref misc/LabelsCleanup: Renamed and moved to cleanup/RemoveScriptLabels
  • 11/12 ref export/QuickExport: Updated help tip for 'Sort files by suffix into subfolders'
  • 11/19 doc lib/moveToLayer: Updated description
  • 12/17 org layout/AdjustLayout: Moved from misc
  • 01/25 ref export/QuickExport: Removed redundant brackets
  • 01/29 doc lib/getBounds: Fixed a whitespace typo
  • 01/29 ref lib/fitTo: Small improvements to the code legibility
New features
  • 10/15 new Added lib/getPageItem: Helper function to get a page item with a specified name, optionally from a specified layer
  • 10/15 new Added lib/setDropShadow: Set of helper functions to get/set a page item's drop shadow properties
  • 10/24 new Added cleanup/DumpLayers: Dump layer properties to TSV
  • 11/06 new Added misc/EAN: Embeds an EAN code in the selected frame or adds it to a new page
  • 11/09 upd export/QuickExport: Restore document layer status after export; report script errors
Updates
  • 10/06 upd misc/QR: Changed default code placement to separate files & streamlined actions
  • 10/06 upd misc/QR, QRBatch: Switched white and uppercase options
  • 10/15 upd lib/progressBar: Improved centering in current window
  • 10/15 upd cleanup/DocCleanup: Reinstated the conversion of empty text frames to generic frames, but only when not auto-sized
  • 10/24 upd hack export/QuickExport: Updated auto suffix hack for two additional layers: varnish and white
  • 10/24 upd hack export/QuickExport: Updated dot-layers hack to only hide them when exporting with a 'print' suffix
  • 10/24 upd misc/QR: Reverted to on-document placement by default
  • 10/24 upd cleanup/DefaultPrefs: Apply preferences in two steps: application/document
  • 10/28 upd align/AlignToC, export/QuickExport, lib/report, misc/LabelPage, misc/QR: Centered UI in app window
  • 10/28 upd cleanup/ReplaceSnippets: Improved error messages
  • 10/30 upd export/QuickExport: Increased max bleed value to 152.4 mm
  • 11/06 upd misc/QR: Centered UI in app window
Bug fixes
  • 09/28 fix lib/getDataFile: Fix regression from commit d0ff5ea
  • 10/04 fix export/QuickExport: Improved titlebar message logic and fixed a quirk
  • 10/24 fix cleanup/DefaultLayers: Matching layer colors to UIColors is now case insensitive
  • 10/28 fix cleanup/DefaultSwatches: Removed some debugging leftovers
  • 11/06 fix misc/QR, QRBatch: Enforced label's leading to auto, 100%
  • 11/07 fix export/QuickExport: Fixed and improved the preset tooltip info; linked DPI availability to the profile sampling setting (on loading profile)
  • 11/07 fix export/QuickExport: Preserved custom bleed from the PDF preset
  • 11/08 fix export/QuickExport: Linked DPI availability to the profile sampling setting (on export)
Miscellaneous
  • 10/24 ref cleanup/SwatchesSave: Renamed to DumpSwatches
  • 10/27 ref ref lib/parseDataFile and related: Tweaked whitespace trimming
  • 11/09 ref lib/fitTo: Simplified isStraight flag
  • 11/09 ref scale/ScaleTo...: Minor changes to scaling function
New features
  • brk lib/parseDataFile and related: Added @includepath directive and support for relative paths
  • upd lib/parseDataFile and related: Added support for comments at the end of lines
  • upd cleanup/DefaultSwatches, ReplaceLinks: Cancel if 'Esc' is pressed
  • upd lib/report: Added auto to filtering mode – automatically shows filtering if there are more than 20 lines
Updates
  • brk lib/parseDataFile and related: Changed data files extension to tsv
  • upd Activated auto filtering to the status report for scripts that need it
  • brk lib/getDataFile: Updated to take as argument a list of files; returns the first one found
  • upd upd lib/parseDataFile and related: Added '.txt' fallback to the data files
  • upd cleanup/DocCleanup: Preserve empty text frames (don't convert them to generic frames)
  • upd view/ZoomTo...: Updated the zoom factor (fits a square page to 90% of 'Fit Page in Window')
Bug fixes
  • fix cleanup/SwatchesSave: Fixed file encoding (UTF-8)
  • fix cleanup/ReplaceLinks: Fixed an error for names containing %
  • fix lib/parseDataFile and related: Fixed @includepath to be always relative to the data folder
  • fix fix fix cleanup/ReplaceLinks: Because we are dealing with document links, changed @includepath default to the document Links folder (and fixed @include to fall back to the data folder in this situation)
  • fix lib/parseDataFile and related: Don't try to @include non-.tsv files
  • fix lib/report: Fixed enabling auto filtering only when auto keyword is used (d'oh)
  • fix lib/report: Fixed borked midnight patch to auto filtering (d'oh)
  • fix lib/parseDataFile and related: Fixed an excessive cleaning of quotes in @include paths
Miscellaneous
  • ref export/QuickExport: Minor (cosmetic) options tweaks
  • ref file/SpreadsToFiles: Updated prompt text
  • ref lib/fitTo: Updated linting settings
  • ref view/ZoomTo...: Refactored to use similar code to its twin
  • doc lib/parseDataFile and related: Changed 'prefixed' to 'starting'
New features
  • new fix SpreadsToFiles: Added a custom positioning placeholder character – if the file name contains a #, the index will be placed in that position
  • new hack QuickExport: Show/hide layers starting with a dot when using a 'preview'/'print' suffix (aka DNP layers)
  • new Added lib/addGuide: Helper function for creating standard ruler guides
  • new Added lib/truncateString: Helper function for truncating strings
  • new lib/report: Added a button for saving the report to file
Updates
  • upd QuickExport, QRBatch: Relaxed the list of invalid file name characters (< > : " \ / \ | ? *)
  • upd DefaultPrefs: Changed baseline grid color to a lighter grey (230,230,230)
  • brk lib/addGuide: Changed the color argument to preset: symmetry axes, sections/subsections, product alignment guides and so on
  • upd GuidesAdd: Updated to use lib/addGuide
  • brk QuickExport: Added a resolution field; bumped settings version
  • upd QuickExport: Added a preset description help tip
  • upd hack QuickExport: When exporting with a print suffix, append +diecut if documents have a dielines layer
  • upd QuickExport: Input/output folder fields are now editable
  • upd lib/addGuide: Tweaked zoom threshold for several guide types
  • upd upd lib/fitTo: Protect <visible area> frames and items on dielines layer
  • upd QuickExport: Error messages are now displayed on the titlebar and the 'Start' button help tip
  • upd DefaultSwatches: Added / to the list of values separators (thus, you can write values as 34 42 23 5, 34|42|23|5, or 34/42/23/5)
  • upd DocCleanup: Items on dielines layer will not be converted to graphic frames; lock varnish layer
  • upd SwatchesSave: Don't open the TSV file after exporting it
  • upd PrepareForExport: Dielines are no longer moved to separate page
  • upd lib/moveToLayer: Added top/bottom keywords
  • upd DefaultLayers/Swatches/ReplaceFonts/Links/Snippets: Improved info/error reporting
Bug fixes
  • fix fix Enforced straight corners to new rectangles and text frames
  • fix ReplaceSnippets: Embedded the helper function into the main script and fixed a replacement quirk
Miscellaneous
  • ref lib/*: Renamed libs to match their function name and updated #include directives
  • ref Changed spelling of 'filename' to 'file name' ;)
  • ref ZoomTo...: Updated the zoom coeficient description with a monitor list
  • ref Added an #includepath directive with a list of fallback folders
New features
  • new ReplaceSnippets: Converted lib/ReplaceText to a standalone script
  • new Added LayersToSpreads: Moves layers of the active document to separate spreads
Updates
  • upd DocCleanup: Split step 3 into separate steps
  • upd MarkVisibleArea, PageSizeFromFilename: Updated 'Visible area' swatch
  • upd upd lib/ParseDataFile, DefaultLayers/Swatches/ReplaceFonts/Links, QRBatch: Trimmed trailing whitespace on import
  • upd ReplaceSnippets: Added a scope limiting column – replacement will only be done if a string appears in the file name (regex)
  • upd upd PrepareForExport, Show/HideDNPLayers: All layers starting with hyphen or dot are now included in the 'do-not-print' list
  • upd ScaleTo: Scaling now takes into account the transformations reference point
Bug fixes
  • fix fix lib/ParseDataFile, DefaultLayers/Swatches/ReplaceFonts/Links: Enforced UTF-8 encoding on opening the data file
  • fix DefPrefs: Added 'Coated FOGRA39' as CMYK profile fallback
  • fix lib/ReplaceText: Skip locked layers & stories
Miscellaneous
  • upd lib/Report: Increased maximum width
New features
  • new DocCleanup: Added a prompt to delete empty frames
Updates
  • brk lib/ProgressBar: Refactored methods – values are updated separately from messages (values are simpler to increment)
  • upd QuickExport: Check cancel request more often (between each export instead of between documents)
  • upd DefaultLayers: Layers get themselves as the first variant
  • upd DefaultSwatches: Swatches get their 'Color Value Name' as the first variant
  • upd DocCleanup: Improved pasteboard setting logic
  • upd DefaultSwatches, ReplaceLinks: Added progress bars
  • upd DocCleanup: Changed visibility and locked state of some technical layers (e.g., 'dielines')
Removed features
  • del Removed DocDefaults stub
Bug fixes
  • fix lib/ReplaceLink: Removed errors.push(), we already return boolean status
  • fix TextAutosize: Added a check for overflown text when disabling hyphenation for one-liners
  • fix DefaultLayers/Swatches/ReplaceFonts/Links: Don't skip error reporting when there are no records
  • fix DocCleanup: Fixed an overzealous trimming of overflowed text
  • fix DocCleanup: Skip frames with strokes when converting empty frames to graphic frames
Miscellaneous
  • ref QRBatch: Processed lines are commented with just a '#', no space; works better when aligning columns with 'Rainbow CSV'
  • ref DefaultLayers/Swatches/ReplaceFonts/Links: Tweaked messages for BigSur's vertical alerts
  • doc lib/ReplaceLink, ReplaceLinks: Clarified/removed a mention about local links
New features
  • new Added lib/MoveToLayers: Moves items to layers, optionally setting front/back order
  • new DocCleanup: Empty non-text frames will be converted to graphic frames to make them visible on complex layouts
  • new ReplaceLinks: 'Document links' list now accepts '*' and '?' wildcards
Updates
  • upd upd DocCleanup, DocDefaults: Added progress bars
  • brk lib/FitTo, lib/GetBounds: The visible area will now fallback to page/spread size
  • upd DefaultLayers/Swatches/ReplaceFonts/Links: Set verbosity to INFO when Ctrl is pressed
  • upd SwatchesCleanup: Merged 'R=0 G=0 B=0' to the default Black swatch
Removed features
  • ref QRBatch: Removed bounds fallback (it's done in the GetBounds lib now)
Bug fixes
  • fix fix QR, QRBatch: Fixed some errors in suffix regexp matching (01/27 bugs)
  • fix Don't resize (PageSizeFromFilename) or don't split (QuickExport) documents with a mixture of sizes (e.g., 210x297 + 297x210)
Miscellaneous
  • doc Added a folder with sample data files
  • ref Renamed lib/isIn to isInArray
New features
  • brk QR 4.0, QRBatch 3.0: Added suffix support (see SpreadsToFiles)
  • upd lib/ProgressBar: Added a second (optional) progress bar
  • upd QuickExport 2.19: Cancel exporting if 'Esc' is pressed
  • new QuickExport 2.17: Added a 'Save as…' option for removing cruft and reducing documents size
  • upd QR 3.7, QRBatch 2.9: Added a checkbox for uppercase text
  • upd QuickExport 2.13: When exporting files to subfolders, a '+' in the suffix will truncate the subfolder name
  • upd lib/ParseDataFile 2.1: You can now use backslash at the end of a line to split long lines
  • brk lib/ParseDataFile 2.0: Extended reporting granularity (fatal, warning, info, etc)
  • new Added GuidesAdd: Adds guides on pages' edges and inner centers or on selected objects' edges (mostly a template script)
  • new Added ReplaceLinks: Replaces document links from a substitution list
  • upd DocCleanup 2.9: Added a step to clear default effects
  • new Added ScaleToSpreadBleed/H/W
  • upd lib/IsIn: Added wildcards support
  • new Added OffsetPath 1.2 by Olav Martin Kvern to /misc (it uses InDesign's text wrap feature to create offset/inset paths)
  • new Added FindFile, IsIn to /lib
Updates
  • upd QuickExport 2.20: Added a second progress bar when exporting separate pages
  • upd QuickExport 2.18: Input files are now sorted in natural order
  • upd QR 3.6.1, QRBatch 2.8.1: The on-page label now has insets on both left and right sides
  • brk lib/FitTo 6.0: Changed input to a page items array argument instead of the current document selection
  • upd DefaultLayers 3.4, DefaultSwatches 4.6, ReplaceFonts 2.3, ReplaceLinks 1.3: Improved the error alert for missing data files; added a check for converted documents
  • upd DefaultPrefs 1.5: Disabled layout adjustment
  • upd QR 3.6, QRBatch 2.8: If it fits, the code will now be aligned outside visible area, instead of margins
  • upd ReplaceLinks 1.2: Update out-of-date links
  • upd LabelPage 1.3, LabelPageRatios 2.2, PrepareForExport 2.3: Aligned page label to crop marks
  • upd lib/Report 2.1.1: Relaxed minimum window width for very small messages
  • upd lib/Debug 1.1: Display NL and CR as paragraph marks
  • upd QuickExport 2.15: Report overflowed text; don't report missing links from the pasteboard
  • upd DefaultLayers 3.3, DefaultSwatches 4.5, ReplaceFonts 2.2, ReplaceLinks 1.1: Improved data parsing and error reporting
  • upd lib/Report 2.1: Updated sorting to 'natural ordering'
  • upd lib/ReplaceSwatch: Return replacement status (boolean)
  • upd QuickExport 2.12: Moved crop marks at 1 mm from trimbox; don't include printer's marks if no bleed
  • upd OffsetPath 2.0: Fixed container-objects; added option to join contours; streamlined logic
  • upd lib/ProgressBar, QRBatch 2.7.1, QuickExport 2.11.2, SpreadsToFiles 1.7.9: Centered progress bar in parent window
  • upd Debug 1.0: Updated description, simplified arguments parsing, updated trunc/pad function
  • upd HW 2.7: Also match old <safe area> frames as visible area marks
  • upd ShowProfiles 1.5: Profiles are only available with a document opened, so create a temporary one
Removed features
  • ref QuickExport 2.21: Removed advanced mode 'Save prefs' button
Bug fixes
  • fix QRBatch 2.9.2: Forgot to pass along the uppercase checkbox value (d'oh!)
  • fix TextAutosize 2.5.2: Hopefully fixed hyphenated lines breaking
  • fix QuickExport 2.16.1: Fixed a bug when skipping page information on pages with small widths
  • fix QR 3.7.1, QRBatch 2.9.1: Made the label uppercase by default
  • fix lib/GetBounds 5.1.3: Get the parent doc from the page argument, don't rely on the global doc variable (d'oh!)
  • fix lib/FitTo 5.5.6: Relaxed 'object is transformed' rule to not clip 90°-rotated objects (fix regression from v5.5.4)
  • fix lib/FitTo 5.5.5: Don't move forced-fit lines to [0, 0]
  • fix lib/FitTo 5.5.4: Transformed containers and text frames are now clipped
  • fix QuickExport 2.16: Don't include page information when pages/spreads widths are less than 335 pt
  • fix LabelPage 1.3.1, LabelPageRatios 2.2.1, PrepareForExport 2.3.1: Added a white outline to labels
  • fix ShowFonts 1.4.6: Fixed name reporting for missing fonts
  • upd QuickExport 2.14: When exporting separate pages don't add a counter if doc has a single page/spread
  • fix DefaultLayers 3.3.1, DefaultSwatches 4.5.1, ReplaceFonts 2.2.1, ReplaceLinks 1.1.1: Changed 'No data file found' alert verbosity level to info
  • fix lib/ParseDataFile 2.2: Fixed clash between general errors and record checking errors
  • fix SpreadsToFiles 1.7.12: Fixed separator validation (regex fuckup)
  • fix lib/ParseInfo: Fixed reporting errors from included files
  • fix lib/Bounds 5.1.1: Fixed typo on page.visible[3]
  • fix QuickExport 2.11.3: Fixed clash with regex tokens when uniquifying filenames
  • fix PrepareForExport 2.2.2: Hidden layers are now ignored
  • fix Clip 2.7, ClipUndo 2.5: Only clip objects directly on spread
  • fix QRBatch 2.7: Converted documents are now skipped and reported
Miscellaneous
  • ref Changed scripts grouping & switched to calendar versioning
  • ref Renamed DeleteGuides to GuidesDelete and CleanupSwatches to SwatchesCleanup
  • ref Renamed lib/ParseInfo to ParseDataFile
  • ref Renamed lib/ReplaceColors to ReplaceSwatch and lib/ReplaceLinks to ReplaceLink
  • ref Linked helper functions by #include preprocessor directive
  • doc Added a README.md for helper functions in /lib
  • ref Updated helper functions
  • doc SpreadsToFiles 1.7.10: Added an example to the prompt message
  • doc Updated description for some of the stubs in /lib
  • ref ref Renamed lib/Bounds to GetBounds and lib/FindFile to GetDataFile
  • ref lib/GetBounds 5.1.2, HW 2.7.1, PageSizeFromFilename 2.1.4, VisibleArea 3.2.1: Renamed visible area regex
  • ref lib/Debug 1.0.1: Changed context separator to '::'
  • ref Renamed OffsetPath to OffsetPaths
  • ref Renamed lib/Relink to ReplaceLinks
  • doc Added a changelog
  • ref upd fix Autumn cleaning: added ESLint and refactored many scripts (hopefully, there are no new bugs)

Backlog

New features
  • new lib/dbg: Add a stopwatch
  • new cleanup/DefaultSwatches: Add tints support
  • new cleanup/DefaultSwatches: Add groups support
  • new export/QuickExport: Add JPG, PNG & ?TIFF export profiles
  • new export/QuickExport: Add INDD (with or without package) export profile
  • new export/QuickExport: Add history to inputs (see page 43 of ScriptUI by PK)
Updates
  • brk cleanup/DefaultLayers/Swatches/ReplaceFonts/Links: Optional arguments: data file, verbosity level
  • upd cleanup/DefaultSwatches: Check color values on parsing
  • upd misc/LabelPageRatios: Mark outer/inner ratios
  • brk export/MarkVisibleArea: Mark the entire spread's visible area, not individual pages
  • brk export/MarkVisibleArea, PrepareForExport: Read layer variants from layers.tsv, fallback to defaults
  • upd export/Show/HideDNPLayers: Take layers from a TSV
  • upd layout/PageMarginsFromSelection: Set the margins of every page touched by the selection
  • upd ? export/QuickExport: JSONify preferences (see this discussion)
  • upd lib/replaceText: Take an array of strings as input
  • upd lib/replaceText: Add grep matching
  • upd lib/report: Improve filtering: - for none of these words, " for exact word or phrase (or pass regex and be done with it)
  • upd file/SpreadsToFiles: Split -ABBBCC to -A, -BBB, -CC
  • upd view/ZoomTo...: Detect monitor resolution and set the zoom coeficient automatically
  • upd ? lib/isInArray: Add regex matching to searchValue
  • upd Use a custom object style for <visible area> frame
Bug fixes
  • fix layout/PageSizeFromFilename: Error on pages set to 1:X scale
  • fix cleanup/ReplaceSnippets: Fix \ matching
  • fix fit/TextAutoSize: Check baselineShift
  • fix transform() and app.transformPreferences.whenScaling
  • fix Nullify large variables on exit
New scripts
  • new ? file/LayersToFiles
  • new file/SpreadsToLayers

Legend

new - new features or first release
brk - changes in existing functionality that break compatibility
upd - changes in existing functionality
del - removed features
fix - bug fixes
ref - changes that neither fixes a bug or adds a feature
doc - changes in documentation
org - file management