Reply To: Change baseline grid in multiple files in one go?

Home Page / Forums / General InDesign Topics (CLOSED) / Change baseline grid in multiple files in one go? / Reply To: Change baseline grid in multiple files in one go?

#91036

Hi Chris, this is possible with very minor steps:

1. Download the batch converter from Peter Kahrel: https://www.kahrel.plus.com/indesign/batch_convert.html

2. Expand the file and copy it to your scripting folder

3. Save these lines as plain text with extension jsx and copy the file to your scripting folder

function main() {
app.activeDocument.gridPreferences.properties = {
  baselineColor: UIColors.lightBlue,
  baselineStart: 15,
  // baselineGridRelativeOption: BaselineGridRelativeOption.TOP_OF_PAGE_OF_BASELINE_GRID_RELATIVE_OPTION,
  baselineGridRelativeOption: BaselineGridRelativeOption.TOP_OF_MARGIN_OF_BASELINE_GRID_RELATIVE_OPTION,
  baselineDivision: "22pt", // Increment Every
  baselineViewThreashold: 50,
  baselineGridShown: true,
  gridsInBack: false
}
} 
main ();

If you do not need a line, simply remove it. Note, that “//” is a comment. So these two lines are either/or. Simply comment or remove the other line, if the current result is wrong.

4. Start the batch converter script: Input/Output > your folder, Ignore errors and Overwrite existing file > checked, Run a script > Select here your saved script, Saved changed documents on closing > checked

Kai

This article was last modified on January 6, 2017

Comments (0)

Loading comments...