Skip to main content
KohakuNekotarou
Participant
August 1, 2026
Question

Find missing glyph

  • August 1, 2026
  • 6 replies
  • 162 views

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
    August 1, 2026

    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

     

    leo.r
    Community Expert
    Community Expert
    August 1, 2026

    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

    rob day
    Community Expert
    Community Expert
    August 1, 2026

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

    leo.r
    Community Expert
    Community Expert
    August 1, 2026

    Yes, I can confirm that this script crashes InDesign.

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