Creating a drawer icon from script

3 posts / 0 new
Last post
hypex
hypex's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 2011-09-09 16:20
Creating a drawer icon from script

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.

jabirulo
jabirulo's picture
Offline
Last seen: 1 day 18 min ago
Joined: 2013-05-30 00:53
Re: Creating a drawer icon from script

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.

AOS4.1/SAM460ex/PPC460EX-1155MHZ/2048MB/RadeonHD6570/SSD120GB/DVDRW :-P

hypex
hypex's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 2011-09-09 16:20
Re: Creating a drawer icon from script

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.

Log in or register to post comments