"Make Nice Names” in extern script?

I am writing a script to analyse OTF files generated with Glyphs. That python script runs independently from Glyphs.
How can I use the “Make Nice Names” in my script? Via the system services? But how?

Check the “Glyphs remote scripts” in the GlyphsSDK repo. Then try this code:

from Glyphs import *

glyphsInfo = Glyphs.objectWithClassName_("GSGlyphsInfo")
print glyphsInfo.niceGlyphNameForName_("uni1234")
1 Like