Skip to main content
Jan 14, 2026 2:25 PM UTC
Answered

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

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

Stefan Rakete
Stefan RaketeCorrect answer
Inspiring
Jan 14, 2026 2:46 PM UTC

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
Jan 14, 2026 2:46 PM UTC

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) {}
}
Translate
BobLevine
Community Expert
Community Expert
Jan 14, 2026 2:30 PM UTC

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.

Translate