English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   support.Other (https://eab.abime.net/forumdisplay.php?f=74)
-   -   Open workbench directory window from shell (https://eab.abime.net/showthread.php?t=102636)

Sim085 07 June 2020 23:46

Open workbench drawer window from shell
 
Is there a Shell command to open a Workbench drawer window? Something similar to "start" command for Windows.

Matt_H 08 June 2020 00:55

It can definitely be done through ARexx on newer OS versions. Have a look at T.H.E. (or its slightly older version).

Not sure about a straight shell command...

AMIGASYSTEM 08 June 2020 01:32

Yes the Arexx script is "OpenSelDrawer" but it does not open the subfolders well.

From CLI you can use WBRun that works well, a few examples:

WBRun DH0:
WBRun DH0:Prefs
WBRun DH0:Prefs/Presets

Sim085 08 June 2020 08:51

When I use WBRun to open a drawer I get the below error:

4.System:> WBRun System:
Couldn't Load "System:"
object is not of required type.

I did try it on other drawers but I get the same error.

I have Workbench 3.1 and WBRun works fine when I use it to open some application from CLI.

Quote:

Originally Posted by AMIGASYSTEM (Post 1406089)
From CLI you can use WBRun that works well, a few examples:

WBRun DH0:
WBRun DH0:Prefs
WBRun DH0:Prefs/Presets


Minuous 08 June 2020 08:57

There is a short ARexx script (s/win) in BB3&4 that does the same thing, but can also be used without any arguments if desired, in which case it will use the current directory.

@Sim085:

I don't think there is any way to do it on OS3.1, as WB did not have the necessary interface until OS3.5. Maybe time to upgrade ;-)

Sim085 08 June 2020 13:58

:crying

So an Arexx script would also not work on Workbench 3.1 as the feature is not supported at OS level. Is this correct?

Quote:

Originally Posted by Minuous (Post 1406124)
I don't think there is any way to do it on OS3.1, as WB did not have the necessary interface until OS3.5. Maybe time to upgrade ;-)


daxb 08 June 2020 14:12

Yes, that is correct. Alternative you can use DOpus5 what comes with an ARexx Port that is able to open directories.

AMIGASYSTEM 08 June 2020 15:49

@Sim085
As already mentioned OS3.1 is an obsolete system, OS 3.9 is the best way to have a Modern Workbench, where all applications work without having to look for the patch, which often happens with OS 3.1.

thomas 08 June 2020 17:39

Quote:

Originally Posted by AMIGASYSTEM (Post 1406250)
OS3.1 is an obsolete system

It's as obsolete as Amiga hardware is. We use it anyway because it's fun. It's fun to use 3.1, 3.0, 2.1, 2.0, 1.3 and maybe even 1.2. It's fun to bring features of OS 4 to WB 1.3. You can't say "don't do it because it's obsolete". By this reason the whole hobby is obsolete. Don't use Amigas because they are obsolete.

AMIGASYSTEM 08 June 2020 22:23

Yes very right Thomas, I use all Amiga systems, but when you want to have particular functions it is better to opt for a more modern OS, then you can also have two or more systems ;)

superkahraman 21 March 2022 17:35

QOpenWB

http://aminet.net/package/util/wb/QOpenWB

Code:

OpenWB is small commandline util to open Ambient or Workbench drawers from
the shell.

Usage: PATH,ICONVIEW/S,LISTVIEW/S,ONLYICONS/S,SHOWALL/S

PATH      - a path drawer to open on the desktop
ICONVIEW  - view drawer in an icon mode
LISTVIEW  - view drawer in a list mode
ONLYICONS - show only files with icons (doesnt work with the list mode in
Workbench)
SHOWALL  - show all files (no-op in Workbench in the list view mode)

Setting sorting criteria (sort by name/size/date/filetype/etc) is not currently
supported because Ambient doesnt currently allow setting this externally.

The archive contains both MorphOS and AmigaOS binaries and source code.

Tested on AmigaOS3.2.1, worked successfully.

Example :
Code:

Qopenwb SYS: ICONVIEW SHOWALL

AMIGASYSTEM 21 March 2022 18:14

It also works well on AROS 68k !


All times are GMT +2. The time now is 22:04.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.04458 seconds with 11 queries