Skip to main content
KohakuNekotarou
Inspiring
Aug 1, 2026 4:01 PM UTC
Question

Find missing glyph

Find missing glyph.

InDesign crashes when handling documents containing tables.
It doesn't crash if you set it to the paragraph and cell level.
Documents containing overset text also crash.

Is this an InDesign bug?

app.findGlyphPreferences.glyphID = -2;
alert(app.activeDocument.findGlyph()[0].contents);

 

    6 replies

    rob day
    Community Expert
    Community Expert
    Aug 1, 2026 6:55 PM UTC

    Hi ​@KohakuNekotarou , Running from Visual Studio Code I get an error—wrapped in a try statement

     

    try {
    app.findGlyphPreferences.glyphID = -2;
    alert(app.activeDocument.findGlyph()[0].contents);
    }catch(e) {
    alert(e)
    }

     

    The error

     

    Translate
    leo.r
    Community Expert
    Community Expert
    Aug 1, 2026 7:25 PM UTC

    Hi ​@KohakuNekotarou , Running from Visual Studio Code I get an error—wrapped in a try statement


    Interesting… On my Mac your code crashes InDesign just like the original one. Maybe it depends on the document somehow?

    macOS 26.5, InDesign 21.5

    Translate
    rob day
    Community Expert
    Community Expert
    Aug 1, 2026 8:27 PM UTC

    I’m running from VSCode, not the ID scripts panel. In any case the code doesn't do or find anything.

    Translate
    leo.r
    Community Expert
    Community Expert
    Aug 1, 2026 5:11 PM UTC

    Yes, I can confirm that this script crashes InDesign.

    The document I tried doesn’t have either tables or overset text.

    Translate