InDesign scripts

General information and disclaimers. Installing, running, and modifying scripts. Contact information.

Links and resources
A collection of links and resources on scripting and GREP which I have found useful, informative, and otherwise noteworthy.

Language-aware paragraph sorting (CS3 and later)
Sort paragraph (or lines) according to the sort rules of the document's language. Formatting remains intact. (For a simpler sorter, see here.)

Language-aware paragraph sort – light
The script sorts paragraphs according to the rules of the document's default language. It cannot deal with formatted lists: but this one, which is also more configurable, can.

Various GREP utilities (CS3 and later)
Several scripts here. – Show the scope of each GREP wildcard and character class (InDesign has more than 50 now) – The Find/Change dialog is a very tight place: a simple GREP editor makes life easier – Manage GREP queries with more ease than the Find/Change dialog allows: display an overview of your GREP queries; chain queries; copy expressions to GREP styles; execute queries and collect the found results in a new document, optionally with page numbers – Print an overview of all GREP queries in the user folder – Print an overview of all GREP styles used in a document.

Indexes and concordances (CS3 and later)
Create concordance (index of a word in its contexts); create indexes without using InDesign's index feature; add topics and page references form character styles or using a word list; convert page references to text; rebuild index for text markers.

Notes: endnotes, margin notes; inline notes (CS3 and later)
Various scripts to deal with different types of note in InDesign documents: convert footnotes to endnotes or margin notes; convert footnotes to column-spanning footnotes; set footnotes in columns; convert static endnotes (e.g. endnotes imported with an MS Word file) to dynamic endnotes. Also a script to deal with inline notes (or notes set in another note's breakline).

Enter/create accented characters (CS3 and later)
Enter accented characters using easy-to-remember keystrokes; combine letters and accents; enter characters by their Unicode value. Script now handles some accents below in any font.

Batch-convert/export files (CS3 and up)
Export documents by the folder to PDF, IDML, (INX), JPEG, PNG, RTF, or package them or convert large numbers of InDesign, PageMaker, or QuarkXPress documents to your version of InDesign.

Kerning (CS3 and later)
InDesign doesn't let you modify kerning tables, but with a script you can apply your own kerning tables.

Show menu actions
The script displays a list of menu actions, which can be filtered and sorted for ease of reference.

Manage unused text anchors
It's not possible in InDesign to get an overview of what a document's text anchors are used for. The script does give you such an overview and lets you delete any unused anchors.

Place multiple Word documents in one InDesign document
Place any combination of selected doc, docx, and rtf files in one InDesign document.

Manage missing glyphs
InDesign shows missing glyphs as pink boxes. The script can be used to list all missing glyphs in a document and to apply a font to them.

Catalogue of InDesign's icons
Create your own catalogue of the icons used throughout InDesign's interface.

Title case
InDesign applies title case indiscriminately. The script lets you define words that should be ignored. In addition, the script can often be used without selecting text: it recognises the state of the cursor: whether it's placed in italic text or surrounded by quotation marks.

Exchange thousands separators and decimal indicators (dots/commas) in numbers
Change English-style thousands separators and decimal separators to non-English style and vice versa.

Go to line
InDesign has a Go to Page jumper, but you can't jump to a certain line on a page. The script fixes that: select the nth line on a page counted from the top or the bottom of a page or n lines down/up from the cursor position.

Export a book or document to PDF and remember the export name, path, and preset. (CS3 and later)
InDesign's PDF export doesn't which name, path and preset you used for a book or a document. It also insists on exporting to interactive PDF. The script fixes that by storing these data in document and book labels.

Beginning ScriptUI (or, ScriptUI for dummies)
An introduction to ScriptUI, Adobe's dialog model for CS applications. This is a PDF with some explanation of the basics of the model.

Hyphenation/word division (CS3 and later)
Some utilities to deal with hyphenation: collect all hyphenated words and place them in a new document; batch-correct hyphenation errors; show how InDesign breaks selected words.

Remove spurious white space (CS3 and later)
The script removes leading, trailing, and duplicate white space. Optionally change all caps to sentence case.

Shortcut for applying semibold (CS3 and later)
You can define shortcuts for applying italics, bold, and other font styles, but not for semibold. This is easily remedied by a script. Set a shortcut to the script and use semibold when the current font family has semibold; if it doesn't, bold is applied.

Unembed embedded images (CS3 and later)
Pasted images (images without a link in the Links panel) and embedded images make bloated documents. The script unembeds embedded images and saves pasted images to disk, creating links in the process.

Add vertical rules to selected paragraphs (CS4 and later)
You can define horizontal rules (one before, one after) in InDesign's paragraphs, but not vertical rules. The script fixes that.

Highlighting word- and letter-spacing overrides (CS4 and later)
The scripts highlights paragraphs with overridden word and/or letter spacing.

Highlight No Break (CS4 and later)
Like word and letter spacing, the No Break attribute is not easily visible. The script highlights all text to which No Break has been applied.

Script dictionaries (PDF) (CS2 and later)
Lists with the methods, properties and enumerations available in CS2+ versions. The lists highlight the new properties, methods, and enumerations for each version. (Marc Autret has some nicely laid out lists here.)

Script launcher (CS3 and later)
The easy way to run a script: a script launcher with a configurable history list. Much more convenient than InDesign's script palette. It's the script I use most often, naturally -- couldn't live without it.

Export book documents individually (CS3 and later)
"Export book to PDF" in the book panel's flyout always creates a single PDF file. The script exports all documents in a book to separate PDFs. You can opt to export documents whole, page by page, or section by section.

Create kerning report (CS3 and later)
If you have a document with lots of manually kerned pairs, you can use this script to create a report listing all kern pairs with their kern value, typeface name, and style.

Show/set text variables (CS3 and later)
Display the names and values of custom text variables in a document; change them easily and create new variables conveniently. New version for CS4, also works in CS3.

Sort tables (CS3 and later)
Sort a table on up to three columns. Formatting can be preserved.

Merge tables (CS2 and later)
Merge all selected tables.

Bookmark (Quickmark) (CS2 and later)
Leave a bookmark at the cursor position, go somewhere else in your document, and fly back to your bookmark later.

Align objects (CS2)
InDesign CS2's options for aligning objects are limited. The script expands these.

Add a page while typing (CS2, 3)
Add a page at the end of the document in which you're typing. No longer relevant from CS4 as it is built into the program.

Delete links to tagged text files (CS and later)
InDesign 3 (CS) and earlier always create a link when you place tagged-text files. These links show up also when you convert such documents to later versions of InDesign. The script removes all these links.

You can contact me .