Skip to main content
January 14, 2026
Answered

How to Remove hyphenation in all paragraph styles (method or script)?

  • January 14, 2026
  • 2 replies
  • 119 views

Hi all

 

I am looking for a working method or script that will disable hyphenation in all the paragraph styles in an existing document in one go in Indesign Windows 11. I can do it manually, paragraph style by paragraph style but its a long process in large documents.

 

Thanks
John

Correct answer Stefan Rakete

Something like this:

var curDoc = app.activeDocument;
var allParagraphStyles = curDoc.allParagraphStyles;
for (var p=0;p<allParagraphStyles.length; p++) {
    var curParStyle = allParagraphStyles[p];
    try {
        curParStyle.hyphenation = false;
    } catch(e) {}
}

2 replies

Stefan Rakete
Stefan RaketeCorrect answer
Inspiring
January 14, 2026

Something like this:

var curDoc = app.activeDocument;
var allParagraphStyles = curDoc.allParagraphStyles;
for (var p=0;p<allParagraphStyles.length; p++) {
    var curParStyle = allParagraphStyles[p];
    try {
        curParStyle.hyphenation = false;
    } catch(e) {}
}
BobLevine
Community Expert
Community Expert
January 14, 2026

I'm sure it can be scripted but this would have been a piece of cake with the proper use of "based on" paragraph styles.