Just wondering if there is any standard way to create a drawer from a script, usually using MakeDir, and also have it create an icon?
I see no update to MakeDir with an icon option which surprises me. Workbench can do it easily but commands cannot. I wonder why?
On OS3.5+ a default icon can be used for the purpose even if it adds extra work since it must be copied separately. But on plain OS3.1 it doesn't have default icons. I don't even recall where Workbench grabs a default drawer icon from as a search turned nothing obvious up but it surely copies one from somewhere.
You can copy the def_drawer icon to the new/created one.
Or using ARexx port of WORKBENCH (ADDRESS workbench) ICONS.SNAPSHOT the drawer/dir so it gets created.
Yeah, I ended up copying it from EVNARC:Sys/def_drawer.info. It's not as neat as a simple switch though and I thought it would be added by now.
I think the Arexx way would be too complicated for what should be a one liner. I thought we had some WB commands to control WB but OS4 has nothing except for startup.
But, I found OS3.1 has no default icons at all, there isn't even any example guide icons. It defaults to a tool which isn't suitable. I also need a guide icon but I will need to create my own in OS3.1 style somehow.