close command windows from a macro..

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

close command windows from a macro..

Nicola B.
Dear all,
I want to close a no image windows from a macro.
In instance when I run this part of macro:
---------------------------------
run("Brightness/Contrast...");
run("Enhance Contrast", "saturated=0.5");    // b&c "auto" settings..
run("Apply LUT");
---------------------------------
the B&C windows still remain open.
I just search in archives and I adapt what I found in the follow solution:

-------------------------------------
if(isOpen("B&C")) {
  //print("open");
  selectWindow("B&C");
  run("Close");
}
--------------------------------------

Exist something more elegant/efficient?

Best regards,
    nicola