Posts filed under: Scripting

How to split a table in InDesign? There is no simple way to split a table in InDesign! By splitting a table, I mean dividing it into two tables. Say you have a table with 1000 rows. You want to...
Read More →
InDesign makes it surprisingly difficult to break the link between two text frames without otherwise modifying the layout. The official way of breaking the thread between frames is to click the in-port or out-port of a text frame, and then...
Read More →
Adobe removed the old “layout adjustment” feature from InDesign 2019 and replaced it with the new “adjust layout” feature. Yes, that’s as confusing as it sounds. I guess their idea was that the new feature is a replacement for the...
Read More →
I just updated the HTML Import script. It is now much faster and more reliable, and should be successful with more websites. Initially, the script didn’t get much traction, but in the last few months I’ve noticed more people trying...
Read More →
A free InDesign script to generate a list of all languages in use in a document In InDesign, text has a language attribute. This means that all text in InDesign is defined as being a certain language – one of...
Read More →
While working on a book in InDesign recently, I needed to switch the position of two paragraphs throughout the 400-page book. There were 2 paragraph styles involved: A “Quote” style, and a “Source” style. In the book as I had...
Read More →
Here’s a little routine that will paste text in a more expected way than InDesign handles it. Fuller explanation to come, time permitting, but check out the link to the Adobe Forums below to understand the issue. This script was...
Read More →
InDesign forces designers to set the page margins by number only. You have to open the Margins and Columns dialog, and type in the distance of the margin from the top, left, bottom, and right of the page. This is...
Read More →
Over on the Adobe InDesign Scripting Forum, Bob Levine asked: I have a client in need of a script to print every nth page in an InDesign book. The book could be more than 20,000 pages so manually entering page...
Read More →
Using FormMagic or FormMaker is a 2-step process. First, FormMagic must be run on the InDesign file. Then, it must be run again in Acrobat on the resulting interactive PDF. In this post, I will show how to create an action in Acrobat...
Read More →
July 2018 UPDATE: If you’re looking to export multiple PDFs, using multiple PDF export presets, into multiple folders, using super-flexible filenaming options (including filenames based on the contents of the page itself), our newly updated Extract Pages script is for you!...
Read More →
Italic-formatted text followed by roman (upright, regular) text can cause typographic problems: the leaning italic letters collide with the upright roman in front. Italic f is particularly problematic, especially as the last letter in a parenthetical comment (what if) where it...
Read More →
The following script is a short and sweet way of moving all text in an InDesign anchored object out of its little cage and into the main text flow of the document. If you have an InDesign document peppered with...
Read More →
Word has a nice feature that lets you select some text and press Shift+F3 to cycle between all the available capitalization modes: so you cycle through the options like this: cycle > Cycle > CYCLE > cycle just by pressing...
Read More →
This is something that has bugged me often with InDesign. Although InDesign has a way of setting an object style to be “default” (in the object styles panel just drag the [T] to your preferred default style), that default setting...
Read More →
Many of the posts on this blog include fully-functional sample scripts. To use these sample scripts, you must copy–paste them into a text editor such as Notepad (not into a word processor!) and then save them with a .jsx extension. The...
Read More →
A few weeks ago on the Adobe InDesign scripting forum, InDesign Guru AnneMarie Concepcion asked for a script that would allow the user to select a bunch of files and automatically place them inside an InDesign document, one after the other:...
Read More →
If you need to save an InDesign document as separate pages or separate spreads, Extract Pages is for you. Tested on Windows and Mac, works on CS6 upwards. (The main product page for this script is here.) Specify multiple ranges, and save as...
Read More →
I was recently needing a way to clear all overrides in a 100+ page book. The book was divided into many separate stories, so it was not possible to simply “select all” and click on the “Clear overrides” button. Instead...
Read More →
If you’re a guest at someone’s house, wouldn’t you agree that it is bad manners to leave a mess behind you when you go? Likewise, when a user runs your script, I’m sure you’d agree that the user shouldn’t have...
Read More →
If you’re converting print publications to ePubs, you’ve probably come across this problem: The print publication typesetter (or compositor, as they are also called) has used InDesign’s all-caps text property for some paragraph styles. For instance, the chapter headings may...
Read More →
JavaScript’s Date object can be a difficult beast to tame. In terms of the number of properties and methods it has, it must be one of the largest core JavaScript classes out there. However, using it requires some careful thinking,...
Read More →