Why does closing a window in Indesign doesn't work?
I have a question concerning Indesign script.
Why does it work, when you close a window like:
submitButton.onClick = function(){ close(); }But when I try to execute a function afterwards like:
submitButton.onClick = function(){ close(); tagElements(); }(note I am using the "with" tag, so no window.close() is needed)
The window does not close? Am I forgetting about something here? Shouldn't the window close, and then execute the function?
The window is initialized like:
var de = new Window('dialog', 'Descriptions');