Is it Possible to Toggle 'Hide Edges' in Illustrator via Script?
Hi everyone, I'm trying to create a Extention in Adobe Illustrator and I want to use toggle the 'Hide Edges' option available under the **View** menu (Ctrl+H). I have tried the following commands:
app.executeMenuCommand("previewEdges"); app.executeMenuCommand("showEdges");
Both commands work individually, but I need a way to toggle between showing and hiding edges, just like the manual Ctrl+H shortcut.
Is there a method or a specific script to achieve this toggle behavior? Or is there another command I'm missing?
Any insights or examples would be greatly appreciated!
Attached is a screenshot of the menu option I'm referring to.
Thank you 
