Created
July 15, 2020 10:46
-
-
Save gregoriopellegrino/8c587a836f7a39c7d3ad32734fb06e7d to your computer and use it in GitHub Desktop.
Script for Adobe InDesign to force the application of paragraph style to footnotes. Useful when importing text from a Word file with local formatting.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// based on https://www.id-extras.com/apply-paragraph-style-footnotes/ | |
paragraph_style = document.footnoteOptions.footnoteTextStyle; | |
if(paragraph_style.name.charAt(0) == "[") { | |
alert("Please set a paragraph style for notes in Text > Document footnotes options..."); | |
} else { | |
document.stories.everyItem().footnotes.everyItem().texts.everyItem().applyParagraphStyle(paragraph_style, true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment