How can I open font view with script?


In python API, it seems it’s not impossible to access font view with tab index or tab related things.
If I have several tabs and I want to open font view without closing other tabs, how can I do it?


Font.currentTab = Font.fontView

Many thanks!

Glyphs.font.currentTab = Glyphs.font.fontView
=> AttributeError: ‘NSKVONotifying_GSFont’ object has no attribute ‘fontView’

‘fontView’ is in wrapper, but not in python api at
It seems it was missing.

instead of that, it is working.
Glyphs.font.currentTab = Glyphs.currentDocument.windowController().tabBarControl().tabItemAtIndex_(0)