Disable automatic backups in Glyphs 3

How to do it in Glyphs 3?

Automatic backups, Google Drive and slow connection are a triangle of hell.

In Glyphs 2 I used NSDocumentController.sharedDocumentController().setAutosavingDelay_(0)

1 Like

It should work the same in Glyphs 3. But instead of zero, maybe use a longer time: maybe 2 minutes? Or disable the Google Drive syncing while working in Glyphs?

The command returns this error regardless of the value:

Traceback (most recent call last):
  File "<internal>", line 1
ModuleNotFoundError: No module named 'objc'
Traceback (most recent call last):
  File "<macro panel>", line 1
NameError: name 'NSDocumentController' is not defined

You need to add

from AppKit import NSDocumentController

Then it says No module named ‘AppKit’
I have pyobjc installed, but I guess it doesn’t work right. I tried to uninstall and install again. Still Glyphs says No module named ‘objc’

Running Catalina 10.15.7

How did you install pyobjc? You could use the Glyphs Python, that contains all you need.

Installed with pip install --upgrade pyobjc

What do you mean Glyphs Python? What do I need to do?

You probably need to do pip3 install pyobjc

It returns “Requirement already satisfied”

Can you do this in Terminal:

import sys

and the Macro window:

import sys

Sure, Terminal returns:
3.9.3 (v3.9.3:e723086bc3, Apr 2 2021, 08:20:09) [Clang 12.0.0 (clang-1200.0.32.29)]

and macro window:

Traceback (most recent call last):
  File "<internal>", line 1
ModuleNotFoundError: No module named 'objc'
3.9.7 (default, Sep  3 2021, 12:45:31) 
[Clang 12.0.0 (clang-1200.0.32.29)]

Then your system python is different than the one you use in Glyphs.

import sys

in the Macro window. That will give a bunch of paths. That should give you an idea where that python is installed. There should be a path like this (the part before “Versions” might be different) /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9. Then change that folder to end with “/3.9/bin” and open it. In that folder you should find a “pip3”. Drag that file into the Terminal window and add “install pyobjc”.

Yes, that did it. Thanks once again Georg!