Is ScriptUI in Illustrator broken?
Coming from a familiarity with scripting panels in After Effects, I'm really confused about how to accomplish the same tasks in Illustrator.
In After Effects, I can create a dockable dialog with access to the whole project. But something seems to be broken in Illustrator's implementation of ScriptUI. If I create a "palette" window, basic user functions in Illustrator work (selecting objects, navigating, etc.), but the palette window script has no access at all to the active document, so all my pretty buttons in the script window that do the awesome things are useless.
If I simply change "palette" to "window", my script has access again to the document - but now Illustrator's interface is locked until I close the script window. My pretty buttons are useless again except on whatever layer or objects I happen to have selected when I run the script - which defeats the purpose of using a window, since I might as well be executing a one-off script to do the same operation.
Am I crazy or doing something incorrectly? Or is Illustrator's implementation of ScriptUI really just this borked?
