More shortcuts

hi folks,

how can i assign shortcuts to actions that are not in the main menu of Glyphs? For instance i’d like to have a shortcut for locking and unlocking an image. I know about the system preferences way, but this doesn’t access the context menu stuff.

You need to write a script that does the action and then assign a command to it. But the “commands” in an subfolder to keep it tidy.

do you have a hint for me how to lock & unlock it? i only found the backgroundImage and setBackgroundImage. When i do:

print dir(thisLayer.backgroundImage)

i get some methods, but none look like locking / fixing.