WB 3.1 extract archive on double click, or on rightclick and extract here etc..- quick way.

0
0

Hello,
im trying to find the way how to extract .lha archives in WB (not in Dopus, i dont like it), no i double click, some line command, i apprear, i have to rewrite part of command to lha x filename.lha a press Enter.
I have tried some packer and unpackager apps, but process was longer that above, lots of click, path selection etc.. i just need something like extract here on doubleclick or doubleclick – and 1 click to extract here in GUI.

Exists something like that for Amiga 3.1?

  • You must to post comments
1
0

To have Workbench 3.1 open a file without an icon by double-clicking it, you need to install a patch such as DefIcons, which will assign a default icon to lha files (and others). Then, the default tool of the default lha file can be set to an unarchiver tool. Under Workbench 3.5+ it’s possible to use a simple script to automatically extract in the same drawer with a simple double-click. Without that however you will need a Workbench program to unpack automatically. I couldn’t find one that did it simply so I wrote a very quick and dirty tool to do it for you. It’s available temporarily here – I’ll update the link when I do a proper release.

Set the program ExtractHere as the default tool for lha archive icons and it will simply execute the lha command as required. If the Tooltype MAKEDIRS is present, the archive will be extracted into a new drawer with the name of the lha file and “_extracted” added. Without the tooltype, the current directory of the lha archive will be used.

Note that it is barely tested and should be considered very beta!

–Additional Info–
DefIcons is a patch that makes Workbench apply default icons to files without .info icon files depending on their filetype. This lets you set the default tool for all files of a particular type, so that an application can be set to open a file type by default. It is built into Workbench 3.9, but for versions 3.0-3.5 it is applies as a part of the NewIcons package.

MAKEDIRS refers to a tooltype in the ExtractHere tool’s icon. It is already set by default so you can see it by selecting the ExtractHere tool and opening the icon information window. Disable it by putting brackets around it or deleting it.

Also, apologies for the icon, it’s an OS 4 icon and won’t look pretty on 3.x. This will be fixed for the proper release.

  • RuThaN
    Thanks very much, but i would need some for info, i dont know Deficons and Makedirs.
  • Daedalus
    Sorry, additional information added to the answer.
  • RuThaN
    Thanks i made a bit progress in this, but im not quite there. I installed iconchief and did sdid magic with its with Deficons, i did it because of other issue with default apps for filetypes – other thread, but im not quite there. Know i could assign default tool for something, but i need a bit help, i just tried lha x for archives, but its not enough i need to execute command lha x archivename.lha / but how to write filename as variable? I mean – i need to extract double clicked file and every archive have unique name. Your solution its coplicated in way that i would need to copy ExtractHere – program, in every folder when i want to extract something, or navigate to folder where is installed..
  • Daedalus
    Not sure what you mean. For scripts, there are special symbols to be used as variable names, but for default tools you do not add any arguments – the filename is passed automatically. Also, ExtractHere should not need to be copied everywhere – just install it once and use it as the default tool. If it does not work as expected, there is a bug and I will fix it.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.