<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Hi Timothy --<div><br></div><div>You can get inspiration from the "Windows" menu:</div><div><br></div><div><img id="1df49b0e-f3cd-4ddd-b920-4e0d650a8330" src="cid:95ad22f0-9f80-4d06-9c57-6a0443cb1188" width="238" height="189"></img><br></div><div><br></div><div>The debug halo on the selected menu item shows:</div><div><br></div><div><img id="52758b84-e1ea-475e-b8c4-a205f8fc04ea" src="cid:fbef1441-e1e1-41eb-92ab-7d227c99bdf2" width="129" height="171"></img><br></div><div><br></div><div>Which ends up in TheWorldMainDockingBar >> #closeAllWindows.</div><div><br></div><div><span style="font-size: 10pt">Best,</span><br></div><div>Marcel</div><div><br></div><div class="mb_sig"></div>
                                        <blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 28.11.2021 19:38:04 schrieb Jakob Reschke <jakres+squeak@gmail.com>:</p><div style="font-family:Arial,Helvetica,sans-serif">Hi,<br><br>Your code snippet sounds reasonable to me, for Inspectors of course.<br>What exactly do you need to know further?<br><br>Guesses:<br>The selector to make them programmatically closable is #makeClosable.<br>With #mustNotClose you can test whether a window is currently unclosable.<br>When you click on the close button (X) the window gets #closeBoxHit<br>sent to it, but that eventually also sends #delete.<br>You may want to check whether the morph is actually a SystemWindow,<br>but other morphs would not often have a tool as their model.<br>And finally, the classes of workspaces and browsers are Workspace and<br>Browser, respectively -- easy enough.<br><br>Kind regards,<br>Jakob<br><br>Am So., 28. Nov. 2021 um 19:28 Uhr schrieb gettimothy via Squeak-dev<br><squeak-dev@lists.squeakfoundation.org>:<br>><br>> Hi Folks.<br>><br>> Somthing along the lines of this:<br>><br>> World submorphs do: [ :e |<br>>     [ (e model isKindOf: Inspector) ifTrue: [ e delete ] ]<br>>         on: Error<br>>         do: [ ] ]<br>><br>><br>> I have ~30 workspaces and 6 browsers minimized and the "close" button is not visible because I made them all uncloseable.<br>><br>> I would like to  programmatically close them using something like the above.<br>><br>><br>><br>> cordially,<br>><br>><br>><br><br></squeak-dev@lists.squeakfoundation.org></div></blockquote></div>