Create List Filter via Script

Is this possible? Couldn’t find it in the docu.

unfortunately not. At least not in a sane way. Can you add a feature request to: http://bugreport.glyphsapp.com

Still the same answer here?

not sure if there’s a better way, but I do it like this:

filterContent = {"Count" : 1,
				 "ShallHaveCount" : 1,
				 "icon" : "CustomFilterListTemplate",
				 "isLeaf" : 1,
				 "list" : ["A"],
				 "name" : "myNewFilter"
				 }

filterController = Font.fontView.glyphsGroupViewController()
filters = filterController.glyphGroups()[2]["subGroup"]
filters.append(filterContent)
filterController.update()
2 Likes

That looks very good.