I am creating a suitelet to run in a pop-up window.
I can open the pop-up from an inline HTML button using
<script type="text/javascript"> window.open(suitlet url); </script>.
suitelet runs and uploads the file as needed, but how to close the window. 1 - can a suitelet access the window object, and do a window.close()? 2- is the only way via response.write('<script type="text/javascript"> window.close();</script>');