I make a script for Indesign.
I add menu with two item.
First item opens a Dialog and it runs function, after click Save, that it add or modify xmlAttributes. It works !!
Second item opens a Window and run function, after click Buttom element Save, that it add or modify xmlAttributes. It not works.
I need to create a window, because I need to create dynamic dropdown with onChange event..
Thanks for help!