Indiscripts

Snippets

Mini-scripts and short re-usable samples.

Dealing with Rotated Spread Views in a Script

“Rotate the spread view” is a nice feature introduced in InDesign CS4. It will prevent you from getting a stiff neck when working on rotated contents such as book spine or landscape tables. Great! Now the bad news: it seems that the DOM does not provide any means to check a rotated spread by scripting. No property, no access method. So what?

Continue reading...

Swapping and Reordering Pages

The InDesign Pages panel lets you manually rearrange the pages of your publication. To move pages around in the work document, it's just needed to click and drag the page icon(s) within the railroad —while paying attention to ‘shuffling’ effects! JavaScript allows you to automate the same handling, which can be very useful when you have a number of pages to switch.

Continue reading...

Restoring the Footnotes into the Story

The task of reinjecting the InDesign footnotes into your main text might seem unusual, but there are some circumstances where you will be happy to have the “UnFoot” script close at hand.

Continue reading...

Take a Walk on the Timeline

When he was working on the terrific Ibsen's “Brand” eBook, Klaus Nordby asked me for a little gadget to finish off the building of his work. He needed a “page-timeline-indicator” graphic at the bottom, which visualizes the exact place the reader is currently reading. So what the book designer wanted for Christmas (or before!) was a neat InDesign script which automatically calculates such a timeline walker and shows the input. Let us see how Klaus' prayer has been answered...

Continue reading...

Web Color Picker

InDesign is definitely not a solution for web designers. For example, look at the Swatches panel, isn't it the worst tool to select or create “web colors” in the #rrggbb hexadecimal format? Fortunately, the ScriptUI elements bring a way to build our own “Web Color Picker”, interacting with the swatches.

Continue reading...

Page 3 of 3 -