Indesign automation scripts

These scripts, programmed in ExtendScript, are perfect for automating tasks on larger files, making your workflow smoother and less painful. Let me know if some may be outdated.

Live baselinegrid adjustment

Show the change live when finding a leading for your indesign document. Indesign does not have live preview of this preference 

Scale images to bleed

Adjust images size to bleed, if not properly set, or if bleed has changed since document setup. Choose a layer with the images, or the name of the image, in the dropdown menu.

Clear space mistakes in document

If there is a space before the paragraph start, double spaces, space before comma or space before a dot, remove these with this script, easily.

Fix bottom margin to snap to closest baseline grid

Very handy script that makes it possible to change the bottom margin to fit on the baseline, instead of measuring with a box. Works both with baseline from top of page, and from margin. Goes very well with “Set document margins from text frame” script that is available below as well. 

Sort text and graphics to their own layers

Sometimes, we tend to place all textboxes, images and graphics on the same layer. This scripts, creates an Images, Graphics, and Text layer, and places all the items, into these layers, automatically. 

Save all open docs and close

As the title states

Count words in one or more documents

This script, find all the stories, and count the words though out full documents.

Book documents set bleed script

Set bleed in all documents in the book at once

Set document margins from textframe size

Create a textbox the size of your wish for the document margins, select the frame and launch the script.

Create and find character styles from selected story

Import text, create and find character styles from the imported text, and format faster. 

Font and x-height script

Create textbox with info on font, x-height, full height, and x-height difference in percentages.

Outline all text in document

All the text contained in the document, loops all text frames and convert to outlined.

Conditional text to centain lengthed lines in document.

Put in a certain number, so that the script counts all characters and marked the lines where there is more than the selected number, of characters. 

Replace masterpages

Change all masters pages used in doc, and apply another master.

Scroll to Top