Releases: pchiorean/Indentz
24.8.15
What's new in 24.8.15
Long time no see – it's been over a year since the previous release. :( There are no major updates, though: there's one breaking change and three new scripts, some new features and many minor updates and bug fixes.
Also, since there are quite a lot of files, I've organized them into a new scheme related to their scope: document, page/spread, objects on page, and application environment. Some scripts were renamed as follows:
| Old name | New name |
|---|---|
| BreakLinkToStyles | RemoveStyles |
| ClipUndo | ClipRelease |
| DefaultLayers | AddLayers |
| DefaultSwatches | AddSwatches |
| FilesToSpreads | JoinDocs |
| ReplaceSnippets | ReplaceTextSnippets |
| SpreadsToFiles | SplitDocBySpreads |
Document
Assets
-
AddLayers:
-
brkFinally, I added a new column for the layers' locked state. When I originally made the script I didn't need this property, but later I discovered that I keep adding hacks to DocCleanup to lock certain layers. :) This is a breaking change, meaning that you will have to manually update all yourlayers.tsvfiles to 7 columns (see README for more info):Name Color Visible Printable Locked Order Variants ...
-
-
AddSwatches:
-
Every swatch automatically gets two new implicit variants along its Color Value Name: its lowercase name (this also fixes case variations), and the alternative spelling of its Color Value Name ('cXmXyXkX' or 'rXgXbX' or 'lXaXbX'). So, if you have this line:
Name Color Model Color Space Values Variants Rich Black process cmyk 60 40 40 100 all document swatches named rich black (and other case variations), C=60 M=40 Y=40 K=100, or c60m40y40k100 will be merged with Rich Black.
-
-
ReplaceLinks:
- Filenames containing commas are now properly recognized, but they must be quoted.
-
newResetLayers:- A new script that (re)sets the visible/printable/locked state of document layers to their state defined in
layers.tsv.
- A new script that (re)sets the visible/printable/locked state of document layers to their state defined in
Export
- QuickExport:
newAdded an option to sort exported files in subfolders by date; the index added to the file names when Overwrite existing files is disabled takes these subfolders into account.newAdded an elapsed time report when the export takes longer than 9 seconds.- When you export with a preset whose name ends with '_print', the exported file name will have all visible and printable layers beginning with '+' appended to the suffix (for example, if there is a visible and printable layer named '+varnish', the exported file name will have the suffix '_print+varnish').
- The options for updating documents were simplified to just Save and Save as.
- When Add a suffix was disabled, it ignored Sort files into subfolders by suffix. This is fixed: you can sort by suffix without adding it to the file names.
- Skip export when fonts are missing; skip export when links are set to be updated but are missing.
- Fixed aborting the export when 'Escape' was detected.
- Small additional fixes and some improvements to error reports.
Housekeeping
-
DocCleanup:
- When deleting empty frames, those having type on path are preserved.
- When cleaning text frames skip threaded ones.
- Replaced a hack used to lock certain layers with a proper solution that uses the layers' state from
layers.tsv. - Simplified the logic that sets the pasteboard size.
-
RemoveStyles:
- In addition to breaking links to object/paragraph/character styles, it will remove orphaned styles and groups.
Page
Guides
-
GuidesAdd:
- By default, it adds page guides; added an option to use spread guides if run while pressing Opt/Alt.
- Changed guides view threshold to 100%.
-
LabelPageRatios:
- Improved label info to display the page ratio and the visible area ratio; if the visible area is not defined, it falls back to the margins ratio.
-
newMarkSafetyArea:- A new script to mark the safety area of a page by creating a frame around the page margins.
Layout
-
PageMarginsFromScriptName:
- When HW was zero it still added a HW guide; fixed.
-
PageSizeFromFilename:
- Improved detection of size pairs (e.g., 'Filename 000x000_000x000' is now recognized).
- Added checks to ensure that page sizes and margins are within valid limits.
Spreads
-
SplitDocBySpreads:
- After merging documents the page numbering will be reset to start at 1.
- The open documents are merged in a natural sorting order.
-
newSplitSpreadsByLayers:- A new script that splits/combines the active document spreads using a list of predefined layers ('DE', 'FR', 'IT'): elements from these layers, depending on the initial number of document spreads, are either distributed into multiple spreads or combined into a single spread.
Object
Clipping
-
Clip:
- Color-filled text frames were clipped ignoring their background; fixed.
- Empty clipping frames are now ignored.
-
Clip, ClipRelease:
- When releasing objects from their clipping frames, only those released will remain selected.
Fit
- TextAutoSize:
- Text frames labeled 'hw' will be processed regularly.
- When trimming ending whitespaces sometimes the styling was affected; fixed by using native Find/Change GREP.
- Items on the '.guides' layer are now ignored.
Other
- OffsetPaths:
newYou can create an offset path around groups (it processes 1st level objects so we don't get a boring rectangle).
Miscellaneous
-
EAN:
newYou can sequentially insert a list of barcodes into multiple objects (in the order they were selected).- List height was supposed to grow depending on selection; fixed.
- Placing code failed when target frames were already populated; fixed.
-
QR:
- The code text now defaults to the file name.
-
QR, QRBatch:
- Fixed document path detection for '[Converted]' documents.
- The fill and stroke were using document defaults; now are set explicitly.
Other
- HW guides are now added to the '.guides' layer.
- Overprinting was attempted on pseudo-white when marking the visible area; fixed.
For other changes not mentioned here see the full changelog.
23.7.18
What's new in 23.7.18
Cleanup
- DefaultPrefs:
- The default text wrap mode is now off.
- Removed color profile settings.
- DocCleanup:
- Empty frames from '.guides' are protected from deletion.
- Added '.segmentation' to 'Show/hide layers' list.
- Added DumpLinks: Saves document's links to a TSV file compatible with ReplaceLinks.
- ReplaceLinks: Improved reports (shown when run with Ctrl key pressed).
- ReplaceSnippets: Find/Change settings are now cleared when script finishes.
- SwatchesCleanup: Moved deletion of unused swatches as the last step.
Fit
- TextAutosize: Fixed a bug that in certain circumstances reverted a frame's auto-sizing to height-only.
Export
- QuickExport:
- Major UI refactoring: most of the common options have been moved to workflows to make them more independent (in the future it will be possible to create presets).
- Added an option to create Acrobat layers.
- Added an option to exclude any layer beginning with '.' or '-' (do-not-print layers). You can also add a custom layer list or use the default one.
- Added an option to automatically upgrade documents from previous versions of InDesign.
hackThere is a hack that automatically appends the names of technical layers like 'dielines,' 'varnish,' etc., to the suffix; unfortunately it used to add them even if the layers were not actually exported. Fixed.- If you keep the Opt/Alt key pressed while clicking Start, the script will run without saving the settings.
- Hide/ShowDNPLayers, PrepareForExport: Tweaked the internal list of do-not-print layers.
- PrepareForExport: No longer creates an 'info' layer if not actually needed.
View
- TileAll: Documents with square formats will use the generic Window ‣ Arrange ‣ Tile.
Misc
-
EAN: The code will be inserted into all selected objects.
-
LabelPageRatios: Now both outer (visible area, or page size if undefined) and inner ratios (margins) will be marked.
Other
- Added a dot prefix to do-not-print layers (e.g., '.visible area').
- Replaced layer 'ID' with 'info' to simplify layer management.
- Increased stroke width when marking the visible area for large visuals.
- Improved feedback when the current document doesn't have a valid path.
- Added
MasterSpreadas a valid parent, thus scripts also work on the parent/master pages.
For other changes not mentioned here see the full changelog.
23.2.1
What's new in 23.2.1
Cleanup
- DefaultPrefs: Changed General ‣ Object Editing ‣ When Scaling to Apply to Content.
- DefaultLayers: You can now order layers to
toporbottomusing these keywords. - DocCleanup: Minor tweaks and fixes.
- RemoveScriptLabels: Renamed from misc/LabelsCleanup.
Export
- QuickExport:
- Preferences will be silently created on first run.
- Added a fix for queued documents that disappear before the actual export.
Layout
- Added PageMarginsFromScriptName: Sets the page margins and optionally the HW area (expressed in percentage of the visible/page area), getting the values from the script name. It's designed to be duplicated and renamed to customize the values, using one or two numbers and the keyword
HW. Example:MG5HW10.jsxsets the margins to 5% and the HW to 10% (HWcan also be used without a number, which sets it to 10%, or omitted, which sets it to 0).
View
- ZoomToSelection/Spreads: When zooming to page include the slug if preview mode is off.
- Added ZoomTo300Percent: Zooms the current view to 300%.
Misc
- QR, QRBatch: Minor tweaks and fixes.
For other changes not mentioned here see the full changelog.
22.11.10
What's new in 22.11.10
Cleanup
- Added BreakLinkToStyles: Unnaplies paragraph/character/object styles from all or selected objects.
- Added DumpLayers: Saves a TSV file with the properties of the active document layers (compatible with DefaultLayers).
- DefaultPrefs: Preferences are now applied in two steps: application/document.
- DocCleanup: Reinstated conversion of empty text frames to generic frames, but only when they are not auto-sized.
- Renamed SwatchesSave to DumpSwatches.
Export
- QuickExport:
- Custom bleed is now imported when defined in the PDF preset.
- Document layers will be restored to initial status after export.
- Increased maximum bleed value to 152.4 mm.
- Improved the PDF preset tooltip info.
- Errors are now reported after running additional scripts.
- When the PDF preset is set to preserve original resolution the DPI option is now disabled.
Misc
- Added EAN: Embeds an EAN code in the selected frame or adds it to a new page.
- QR:
- Switched uppercase and white label options.
- Set label leading to 100%.
Other
- Dialogs are centered in the InDesign window.
For other fixes and improvements not mentioned here see the full changelog.
22.9.25
Cleanup
- DefaultSwatches: You can now cancel by pressing 'Esc'.
- DocCleanup: No longer converts empty text frames to generic frames.
- ReplaceLinks:
- Fixed an error for names containing
%. - You can now cancel relinking by pressing 'Esc'.
- Fixed an error for names containing
- SwatchesSave: Changed the TSV encoding to UTF-8 to preseve swatch names using non-ASCII characters.
Export
- QuickExport: Cosmetic tweaks to 'Export in subfolders' description.
File
- SpreadsToFiles: Cosmetic tweaks to the prompt text.
View
- ZoomTo...:
- Tweaked the zoom factor (fits a square page to 90% of 'Fit Page in Window').
- Refactored to use similar code.
Other
- All scripts that use TSVs as input:
- Added an
@includepathstatement which sets a reference path to which subsequent relative paths will refer. - You can now use relative paths for both
@includeand@includepath: thus, a path may be an absolute path, one relative to the current data file, or a path relative to a reference path, if defined by a previous@includepathstatement. - Changed data files extension to
.tsv(it still looks for.txtas fallback). - Added support for comments at the end of lines (everything after a
#is ignored).
- Added an
- Activated auto filtering to the status report for scripts that need it.
22.8.22
Cleanup
- DefaultPrefs: Changed baseline grid color to a lighter grey (
230,230,230). - DefaultSwatches: Added
/to the list of values separators (thus, you can write values as34 42 23 5,34|42|23|5, or34/42/23/5). - DocCleanup:
- Items on
dielineslayer will not be converted to graphic frames. - Also locked the
varnishlayer.
- Items on
- ReplaceSnippets: Fixed a replacement quirk.
- SwatchesSave: Will no longer open the TSV file after export.
- Improved info/error reporting.
Export
-
QuickExport:
newAdded a resolution field; bumped settings version.- Input/output folder fields are now editable (in a future version it will also create the output folder if it doesn't exist).
- The titlebar and the 'Start' button help tip will display the errors that prevent the script from running.
- Added a preset help tip that shows the selected preset settings.
hackWill show/hide layers starting with a dot when using apreview/printsuffix (aka DNP layers).hackWhen exporting with aprintsuffix, will append+diecutif documents have adielineslayer.
-
PrepareForExport: Dielines are no longer moved to separate page.
File
- SpreadsToFiles:
newAdded a custom positioning placeholder character – if the file name contains a#, the index will be placed in that position.
Fit
- Protected the
<visible area>frames and items ondielineslayer from reframing (they will reframe in enforced mode).
Other
- Added a button for saving the reports to file.
- Relaxed the list of invalid file name characters (
<>:"\/\|?*). - Enforced straight corners to new rectangles and text frames.
- Added an
#includepathdirective with a list of fallback folders.
22.6.11
This is a streamlined, statically-linked version of the repository to eliminate the need for libraries and make the scripts stand-alone.
New features
newReplaceSnippets: Replaces text snippets from a substitution listnewLayersToSpreads: Moves layers of the active document to separate spreads
Updates
updDocCleanup: Split step 3 into separate stepsupdMarkVisibleArea, PageSizeFromFilename: Updated 'Visible area' swatchupdupdDefaultLayers/Swatches/ReplaceFonts/Links, QRBatch: Trimmed trailing whitespace on importupdReplaceSnippets: Added a scope limiting column – replacement will only be done if a string appears in the filename (regex)updupdPrepareForExport, Show/HideDNPLayers: All layers starting with hyphen or dot are now included in the 'do-not-print' listupdScaleTo: Scaling now takes into account the transformations reference point
Bug fixes
22.4.11
This is a streamlined, statically-linked version of the repository to eliminate the need for libraries and make the scripts stand-alone.
New features
newDocCleanup: Added a prompt to delete empty frames
Updates
updQuickExport: Check cancel request more often (between each export instead of between documents)updDefaultLayers: Layers get themselves as the first variantupdDefaultSwatches: Swatches get their 'Color Value Name' as the first variantupdDocCleanup: Improved pasteboard setting logicupdDefaultSwatches, ReplaceLinks: Added progress barsupdDocCleanup: Changed visibility and locked state of some technical layers (e.g., 'dielines')
Bug fixes
fixTextAutosize: Added a check for overflown text when disabling hyphenation for one-linersfixDefaultLayers/Swatches/ReplaceFonts/Links: Don't skip error reporting when there are no recordsfixDocCleanup: Fixed an overzealous trimming of overflowed textfixDocCleanup: Skip frames with strokes when converting empty frames to graphic frames
Miscellaneous
delRemovedDocDefaultsstubrefQRBatch: Processed lines are commented with just a '#', no space; works better when aligning columns with 'Rainbow CSV'refDefaultLayers/Swatches/ReplaceFonts/Links: Tweaked messages for BigSur's vertical alertsdocReplaceLinks: Clarified/removed a mention about local links
22.3.11
This is a statically-linked version of the repository to eliminate the need for libraries and make the scripts stand-alone.
New features
newDocCleanup: Empty non-text frames will be converted to graphic frames to make them visible on complex layoutsnewReplaceLinks: 'Document links' list now accepts '*' and '?' wildcards
Updates
updupdDocCleanup, DocDefaults: Added progress barsrefQRBatch: Removed bounds fallback (it's done in theGetBoundslib now)updDefaultLayers/Swatches/ReplaceFonts/Links: Set verbosity to INFO when Ctrl is pressedupdSwatchesCleanup: Merged 'R=0 G=0 B=0' to the default Black swatch
Bug fixes
fixfixQR, QRBatch: Fixed some errors in suffix regexp matching (01/27 bugs)fixDon't resize (PageSizeFromFilename) or don't split (QuickExport) documents with a mixture of sizes (e.g., 210x297 + 297x210)
Miscellaneous
docAdded a folder with sample data files
22.2.9
This is a statically-linked version of the repository to eliminate the need for libraries and make the scripts stand-alone.
New features
brkQR 4.0, QRBatch 3.0: Added suffix support (seeSpreadsToFiles)updQuickExport 2.19: Cancel export if 'Esc' is kept pressednewQuickExport 2.17: Added a 'Save as…' option for removing cruft and reducing documents sizeupdQR 3.7, QRBatch 2.9: Added a checkbox for uppercase textupdQuickExport 2.13: When exporting files to subfolders, a '+' in the suffix will truncate the subfolder nameupdDefaultLayers/Swatches/ReplaceFonts/Links: You can now use backslash at the end of a line to split long linesnewAdded GuidesAdd: Adds guides on pages' edges and inner centers or on selected objects' edges (mostly a template script)newAdded ReplaceLinks: Replaces document links from a substitution listupdDocCleanup 2.9: Added a step to clear default effectsnewAdded ScaleToSpreadBleed/H/WnewAdded OffsetPath 1.2 by Olav Martin Kvern to/misc(it uses InDesign's text wrap feature to create offset/inset paths)
Updates
updQuickExport 2.20: Added a second progress bar when exporting separate pagesupdQuickExport 2.18: Input files are now sorted in natural orderupdQR 3.6.1, QRBatch 2.8.1: The on-page label now has insets on both left and right sidesupdDefaultLayers 3.4, DefaultSwatches 4.6, ReplaceFonts 2.3, ReplaceLinks 1.3: Improved the error alert for missing data files; added a check for converted documentsupdDefaultPrefs 1.5: Disabled layout adjustmentupdQR 3.6, QRBatch 2.8: If it fits, the code will now be aligned outside visible area, instead of marginsupdReplaceLinks 1.2: Update out-of-date linksupdLabelPage 1.3, LabelPageRatios 2.2, PrepareForExport 2.3: Aligned page label to crop marksupdQuickExport 2.15: Report overflowed text; don't report missing links from the pasteboardupdDefaultLayers 3.3, DefaultSwatches 4.5, ReplaceFonts 2.2, ReplaceLinks 1.1: Improved data parsing and error reportingupdQuickExport 2.12: Moved crop marks at 1 mm from trimbox; don't include printer's marks if no bleedupdOffsetPath 2.0: Fixed container-objects; added option to join contours; streamlined logicupdDebug 1.0: Updated description, simplified arguments parsing, updatedtrunc/padfunctionupdHW 2.7: Also match old<safe area>frames as visible area marksupdShowProfiles 1.5: Profiles are only available with a document opened, so create a temporary one
Removed features
refQuickExport 2.21: Removed advanced mode 'Save prefs' button
Bug fixes
fixQRBatch 2.9.2: Forgot to pass along the uppercase checkbox value (d'oh!)fixTextAutosize 2.5.2: Hopefully fixed hyphenated lines breakingfixQuickExport 2.16.1: Fixed a bug when skipping page information on pages with small widthsfixQR 3.7.1, QRBatch 2.9.1: Made the label uppercase by defaultfixQuickExport 2.16: Don't include page information when pages/spreads widths are less than 335 ptfixLabelPage 1.3.1, LabelPageRatios 2.2.1, PrepareForExport 2.3.1: Added a white outline to labelsfixShowFonts 1.4.6: Fixed name reporting for missing fontsupdQuickExport 2.14: When exporting separate pages don't add a counter if doc has a single page/spreadfixDefaultLayers 3.3.1, DefaultSwatches 4.5.1, ReplaceFonts 2.2.1, ReplaceLinks 1.1.1: Changed 'No data file found' alert verbosity level toinfofixSpreadsToFiles 1.7.12: Fixed separator validation (regex fuckup)fixQuickExport 2.11.3: Fixed clash with regex tokens when uniquifying filenamesfixPrepareForExport 2.2.2: Hidden layers are now ignoredfixClip 2.7, ClipUndo 2.5: Only clip objects directly on spreadfixQRBatch 2.7: Converted documents are now skipped and reported
Miscellaneous
refChanged scripts grouping & switched to calendar versioningrefRenamed DeleteGuides to GuidesDelete and CleanupSwatches to SwatchesCleanuprefLinked helper functions by#includepreprocessor directiverefUpdated helper functionsdocSpreadsToFiles 1.7.10: Added an example to the prompt messagerefRenamed OffsetPath to OffsetPathsdocAdded a changelog