More or less, it looks like the .pyc file doesn’t match the python being used. The most common mechanism for fixing this is to remove the .pyc file and let python regenerate that file. But it looks like the .py file isn’t included within Glyphs.
Traceback (most recent call last):
File "<string>", line 3, in <module>
ImportError: Bad magic number in /Applications/Glyphs.app/Contents/Scripts/GlyphsApp.pyc
As a note, it’s incredibly easy to reverse engineer a .pyc file…but it looks like you all have taken steps to prevent me from recreating the .pyc from a recreated .py file. Looking at the code, it appears you’re using python 2.6. I’m guessing that’s because Apple ships 2.6 with its OS. However, my best bet is that you’re actually using my /usr/local/bin or /usr/bin/env python, which won’t be 2.6 (I’m a full-time python developer).
Is there a way around this? I’d really like to explore the scripting, but the bug above is basically a non-starter for me.