I’m currently diving into scripting to aid in building a workflow.
What’s the appropriate way to call functions like round corners, make corner, make first, etc… from a script?
For a make first I’ve hacked this together, it seems to do the job. Yet I’m not sure it’s the right way.
Technically, corner components are hints. So you create a GSHint() and then set its type to the constant for corner components. See the API documentation for details: docu.glyphsapp.com
I’m not after corner components per se. Although your reply might come in handy.
Much more I’m interested in calling methods in the API as well as registered plugins and scripts.
If you know that a plugin has a certain functionality, you need to dig a lot. First get hold of a reference to that plugin. Then figure out how/what to call. dir() can help a lot with that.