<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="+1">This is run as described in the Cuis Book
(<a class="moz-txt-link-freetext" href="https://cuis-smalltalk.github.io/TheCuisBook/Daily-Workflow.html">https://cuis-smalltalk.github.io/TheCuisBook/Daily-Workflow.html</a>).</font></p>
<p><font size="+1">I tried the third option for a startup script:</font></p>
<p><font size="+1">| list |<br>
"Delete all windows but the taskbar"<br>
WorldMorph allInstancesDo: [:w | list := w submorphs reject:
[:aMorph | aMorph is: #TaskbarMorph]].<br>
list do: [:each | each delete].<br>
</font></p>
<p><font size="+1">It does not work when invoked at startup as the
argument of the -s option. When copied and pasted in Cuis6
Workspace, it works though.</font></p>
<p><font size="+1">Hilaire<br>
</font></p>
<div class="moz-cite-prefix">Le 03/01/2022 à 15:40, Juan Vuletich a
écrit :<br>
</div>
<blockquote type="cite" cite="mid:61D30ADE.3060402@zoho.com"><br>
I'm not sure how you are running this, but I see two different
ways to query for the world: `UISupervisor ui` and `self
runningWorld`. At the early phase of start up these could fail,
and maybe `WorldMorph allInstancesDo: [ :w | w doStuff ]` is
safer.<br>
<br>
In any case, I didn't change any of this for Cuis 6. But maybe
some changes in the recent morph hierarchy reorganization is the
reason.<br>
</blockquote>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</body>
</html>