Hello, Hoping to get some help with a JSL script. I am having issues with a newImage object staying open but is completely hidden. Only way I know it is open is because windows fails to delete the file because it says it is open in another program which is fixed by closing JMP. Here is a snippet of my code, I have tried a few obj << close() and obj << close window() but the object remains.
img_t = newImage(path_to_results||"/"||subfolder_list[k]||"/"||image)
w2 = new window("Image", Show Toolbars(0), Show Menu(0), img_t);
w2 << Add Simple ShapeAnnotation(Oval(PX-25,PY-25,PX+25,PY+25 ),color("Yellow"),raised(1));
img= w2 << getpicture();
img_t << Close Window;
w2 << Close Window;
img<<set size({800, 800});Any suggestions?