Search code examples
windowapplescriptadobe-indesign

How to open the "Find Font" window in InDesign with Applescript


As the title says, I have a script running that checks for missing fonts in an InDesign document. I want it to harass the person with the "Find Font" window until the issue is resolved or they click the "Ignore" button, but I can't for the life of me figure out how to trigger the "Find Font" window to come up.


Solution

  • Okay so, I found out the solution. It won't read the menu items UNLESS the menu is already open. I was able to do the following.

    tell application "System Events"
        tell process "Adobe InDesign CC 2017"
            click menu "Type" of menu bar 1
            click menu item "Find Font..." of menu "Type" of menu bar 1
        end tell
    end tell