How to run Python script in Glyphs.app externally?

Hi!
I sometimes need to run some scripts to get Glyphs.app’s opinion on something but I don’t want to VNC into a Mac, open Glyphs.app and paste code into the script dialog. Can I instead ssh into the Mac and run a Python script that can access Glyphs.app scripting stuff somehow? Ideally something that also works with Glyphs.app 2.x.

There is an example script in the Glyphs SDK repo: GlyphsSDK/Glyphs remote scripts at Glyphs3 · schriftgestalt/GlyphsSDK · GitHub

Works with both Glyphs 2 and 3. You need to adjust the port in Glyphs.py:11.

1 Like