Indesign scripting: 1) window v. dialog
Hi,
I am working on a script with a basic-ish UI, for Indesign 17, hoping to port it to v 18 (and beyond) eventually.
I was working with the documentation from the scripting sdk for v 17.4, which creates ui's using app.dialogs, eg:
var myDialog = app.dialogs.add({name:"Simple Dialog"});But I also found this wonderful ui builder tool: https://scriptui.joonas.me/, but it uses "Window"s, eg:
var myWindow = new Window ("dialog", title);From what I can tell so far, they are distinct in the object model (window, dialog) and have different properties etc. (For example I tried to use an "integerEditbox" in a Window as declared above and it is not recognized)
Is one prefereable to the other, for ease of use &/or future-proofing/Adobe-support?
