A constant source of frustration for me is that the Macro Window separator is re-set to a very low position each time I re-start Glyphs. I need to see the output of my scripts, not the old code snippets I was using a few weeks a go. Is it possible to permanently keep the snippet part small (or even collapsed)?
Workaround: I have a shortcut assigned to the mekkablue script App > Toggle Macro Window Separator. Perhaps you can put the code in a small placeholder plugin that resets it to all the way up when the app starts.
Thanks. I found that script but what’s the easiest way of running a script each time the app starts?
I tried it a few times, and it seems to remember it for me. I moved the divider and restart Glyphs and it was still at the same spot.
That’s great but it does not help me. On my computer, the position is not remembered.
What’s the easiest way of running a script each time the app starts?
Put it in a .glyphsplugin.
Do you get anything if you run this in the macro panel?
print(Glyphs.defaults["NSSplitView Subview Frames MacroPanelDivider"])
I have several of those keys with values stored in my Glyphs defaults, this snippet will just print one of them.
I am getting
(
"0.000000, 0.000000, 821.000000, 749.000000, NO, NO",
"0.000000, 750.000000, 821.000000, 136.000000, NO, NO"
)
The forth in the first item should be the high of the code view. If you drag the divider, does this value change?
Yes, the fourth in the first and in the second line change after I drag the divider.
And if you restart Glyphs, do the values change and or do they match the “wrong” position?
If I restart Glyphs without opening a font and then press “Run” I get a beach ball. Have to force quit.
If I open a font first then I am getting the old values (749 for the upper part) again, and this corresponds to the real position.
Different idea if you just want the output part: Hold down the Shift key and choose Window > Floating Macro Console. This is the output part of the Macro Window, but detached.
Ohhhhh, that’s a nice one!
(I knew that one can hold option
for secondary menu items, but shift
was entirely new to me)