Execute Javascript jsx by action, a bug?
Actually it should be possible to execute a Javascript (jsx) by an action. So it would be possible to assign a keyboard shortcut to a Javascript.
Unfortunately, I found out that only menu commands are executed by a javascript that is executed by an action and other commands like "Alert" are ignored.
Is there a trick so that the complete javascript is executed?
Found in Illustrator 26.0.2 and 24.3.0 under macOS 10.15.7 (german).
This is my very simple javascript to test this problem:
// Script 1
#target illustrator
app.preferences.setBooleanPreference("ShowExternalJSXWarning",false); // A trick to do a drag-and-drop without warning – you can delete this two lines, it makes no diffenrent.
app.executeMenuCommand("open");
alert("End of script.");
// end of script 1
