InDesign Hacking with JavaScript
Author: Kenshi Muto. The source was found here (in Japanese).
How to install
- CS2: Place it in the application's Presets \ Scripts folder.
- CS3 Windows version: Create and place a folder named hwj-Scripts in user's Application Data \ Adobe \ InDesign \ Version 5.0-J \ Scripts \ Scripts Panel folder.
- CS3 macOS version: Create and place a folder called hwj-Scripts in the user's Library / Preferences / Adobe InDesign / Version 5.0-J / Scripts / Scripts Panel folder.
- CS4 macOS version: Create and place a folder called hwj-Scripts in the Library / Preferences / Adobe InDesign / Version 6.0-J / Script / Scripts Panel folder of the user.
- CS5.5 macOS version: Create and place a folder called hwj-Scripts in the user's Library / Preferences / Adobe InDesign / Version 7.5-E / ja_JP / Scripts / Scripts Panel folder.
- CS6 macOS version: Create and place a folder called hwj-Scripts in the user's Library / Preferences / Adobe InDesign / Version 8.0-J / JP / Scripts / Scripts Panel folder.
- CC 2017 macOS version: Create a folder called hwj-Scripts in the Library / Preferences / Adobe InDesign / Version 12.0-J / Script / Scripts Panel folder of the user and place it.
- CC 2018 macOS version: Create and place a folder called hwj-Scripts in the Library folder of the user's Library / Preferences / Adobe InDesign / Version 13.0-J / Script / Scripts Panel folder.
In addition, copy glue code.jsx provided by Adobe (for example, "/ Application / Adobe InDesign version / Scripts / XML Rules / glue code.jsx" on macOS) to the libs folder in the hwj-Scripts folder.
The main focus is on formatting from XML documents, but some scripts use paragraph styles etc., and even ordinary text formatting can be applied.
- Files with names beginning with lib contain functions only and require separate script code to use.
- Files whose names begin with dialog are dialog-based scripts.
- Files with names beginning with silent are scripts that run without displaying any dialogs.
- Files with names beginning with book are scripts for specific books.
Place the script in the application's Presets / Scripts folder (the script file name will be displayed in the automation window).
Google-translated documentation
Click here to download the scripts from my site, or from the original location.