Feature request: copy-paste entire variable table data

It’s difficult to select multiple Alternate/Intermediate layers at the same time since in Font View only master layers can be selected. It’s probably best to create a script.


To create a script, go to the Script menu and choose Open Scripts Folder (⇧⌘Y). A Finder window will open with the Scripts folder selected.

  1. Go into the Scripts folder and create a new folder. Most people name it after themselves, so name the folder “KTKM”. I named mine “Florian Pircher”.
  2. Open a plain text editor. If you are used to code editors like TextMate, Sublime Text, or VS Code, those work well. If not, use the TextEdit app included on the Mac.
  3. (If using TextEdit) Create a new file with File → New. Ensure that you are in plain text mode, not rich text mode. If you see formatting controls (font, font size, text alignment, …) in the window toolbar, convert the document to plain text mode by choosing FormatMake Plain Text (⇧⌘T).
  4. Paste the code of the script.
  5. Add a new line at the beginning of the file with # MenuTitle: Some Script where “Some Script” is the name of the script.
  6. Save the file to your new scripts folder (e.g. “KTKM”). The filename is the name of the script and .py at the end. If you edit in TextEdit, ensure that If no extension is provided, uses “.txt”. is unchecked, like so:
  7. With the file saved, go back to Glyphs, open the Script menu, hold down the Option key and choose Reload Scripts (⌥⇧⌘Y, scripts are automatically reloaded when relaunching Glyphs).
  8. Open the Script menu again and you will find your script folder as a submenu with the script place in it:

Assign a keyboard shortcut to the script by going to GlyphsPreferences…Shortcuts. There, search for your script, click Record shortcut, and press the key combination that should trigger the script (make sure the same shortcut is not already used in Glyphs).

Now, pressing the keyboard shortcut will run the script. If anything goes wrong because some error is in the script code, it will be printed to the console in the Macro panel.


Creating scripts will involve less steps in a future release of Glyphs :​)