mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-26 12:21:08 +01:00
app.executeMenuCommand(name) runs the command of a menu item on the active document. It takes the names selectall, deselectall, group, ungroup, makeMask, releaseMask, compoundPath, noCompoundPath and "Fit Artboard to artwork bounds", which fits the active artboard. Names are matched exactly. Any other name throws an error that names it, and a name that is not a string throws a TypeError. A menu item that is not available, with no document open or nothing selected, does nothing and adds no undo step. Docs: docs/mcp.md, docs/target-app-parity.md.