1 person found this helpful
Use a palette, not a dialog. Like this:
var w = new Window ("palette", "Scrindesign Conversion Tool");
I tried that too, but for some reason when I run the script, it opens the palette then closes it immediately. Do you see anything in the UI that would cause that? It happens even if I remove #include Scrindesign.jsx, so I doubt it's something in the original script.
O yes, you need to run the script in a persistent engine. Add this line at the top of the script:
(the name doesn't really matter).
Okay, so I was missing the session directive. Awesome. Thanks! Now all I've got to do is wire my UI up to my script and I'm golden. Thanks for the help!