ID Scripting

Scripting can be quick-and-dirty, for throw-away projects, or can be carefully built and bullet-proofed, like a standard application or extension. These scripts were built using Adobe’s customized version of JavaScript, called ExtendScript.

Requirements: Some of the scripts require InDesign CS3 or newer. Others should run on even earlier versions of InDesign. The scripts have not recently been tested in Windows, but should work in Windows with no problems.

The scripts in this collection are mainly for use during prepress production. Some are quite large and complex, especially the IDBooklet.jsx and IDBusinessCards.jsx scripts.

The scripts can be downloaded here.  

To install, uncompress the zip file, and drag the resulting SC_SCRIPTS folder into your <InDesign Application>/Scripts/Script Panel folder. Run a script by double-clicking on the script name in the InDesign Scripts panel. 

Most of the scripts operate on the currently active document.

Send any bug reports, with a sample InDesign source file, to stephen@sterlingcomputing.com

The Scripts

IDBooklet.jsx turns “designer spreads” into “printer spreads.”  It produces a new inDesign doc, complete with printer marks, which can then be printed or exported as PDF.

The script works by first exporting all the original pages as separate PDF files, then creating a new InDesign doc and importing the PDF pages into the new doc in the specified booklet page order. Finally, printer marks are added if required.

IDBookletX.jsx is a beta of a newer version.

IDBusinessCards.jsx does a "step and repeat" of your original business card design onto a new document, complete with crop marks.

Graphics are allowed to bleed off the edges of the original business card, and the bleed will be handled correctly by IDBusinessCards.

IDBusinessCardsX.jsx is a beta of a newer version. The main additional feature is that it supports "Presets" of different layouts and paper sizes. You can add your own Presets by editing the table at the end of the IDBusinessCardsX.jsx script.

Note that there is an InDesign Extension, IDImposer, that incorporates the functionality of IDBooklet and IDBusinessCards and much, much more. See my other web site, http://idimposer.com. IDImposer requires InDesign CS5 or higher, and cannot be adapted to earlier versions, since InDesign Extensions did not exist before CS5.

IDGraphicReporter is a simple script that writes out information about each Graphic object in your document to a text file, in a form that can be imported into Excel or other spreadsheet if you wish.

IDImageCatalog is a modernized version of the ImageCatalog script that comes with InDesign.

IDRelink relinks your imported Graphic files to new Graphic files found in a folder that you specify. If it does not find a file of the same name, it also looks to see if there is a file with the same base name but different extension, and, if so, relinks to that file. IDRelink does NOT make a copy of your original InDesign document, so you probably want to make a backup copy before running IDRelink.

IDStreamliner can save production time and disk space for image-intensive workflows such as catalogs. It does this by examining the images in an InDesign document, to see if the linked file is larger than it needs to be, given the image pixel dimensions and the scaled size on the page.  If it finds any images that are in need of streamlining, it runs Photoshop to resize the image data, creating a new image file (the old one is not altered), and links to this new resized image file instead of the old one.

If there are images in the document that should NOT be resized / resampled, you can use the Script Label panel to mark the images as "NO_RESAMPLE" (without the quotes) before running IDStreamliner.

Note that the InDesign document itself will probably not get smaller -- the new document just links to smaller images.


© Sterling Computing 2013