Access "search" field and show (filter?) selected

Hi, is it possible to access the search field (via scripting)?

I’d like to:

  1. Set the search from a script.
  2. Select some glyphs related to the search found glyphs (not the found ones, of course).
  3. Show those related in the Font view (selected)

Is this possible? Any help will be appreciated. Thanks!

This can be done like this:

Font.fontView.glyphSearchField().setStringValue_("Ad")
Font.fontView.filterGlyphs_(None)
print("visible glyphs", Font.fontView.glyphsArrayController().arrangedObjects())
Font.fontView.glyphsArrayController().setSelectedObjects_([Font.glyphs["Adieresis"], Font.glyphs["adieresis"]])

Thanks!