07 June 2020, 23:46 | #1 |
Registered User
Join Date: Apr 2009
Location: N/A
Posts: 962
|
Open workbench drawer window from shell
Is there a Shell command to open a Workbench drawer window? Something similar to "start" command for Windows.
Last edited by Sim085; 08 June 2020 at 08:53. |
08 June 2020, 00:55 | #2 |
Registered User
Join Date: Jul 2008
Location: Boston, MA
Posts: 948
|
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... |
08 June 2020, 01:32 | #3 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,262
|
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 |
08 June 2020, 08:51 | #4 |
Registered User
Join Date: Apr 2009
Location: N/A
Posts: 962
|
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. |
08 June 2020, 08:57 | #5 |
Coder/webmaster/gamer
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,673
|
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 ;-) |
08 June 2020, 13:58 | #6 |
Registered User
Join Date: Apr 2009
Location: N/A
Posts: 962
|
So an Arexx script would also not work on Workbench 3.1 as the feature is not supported at OS level. Is this correct? Last edited by Sim085; 08 June 2020 at 14:05. |
08 June 2020, 14:12 | #7 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,307
|
Yes, that is correct. Alternative you can use DOpus5 what comes with an ARexx Port that is able to open directories.
|
08 June 2020, 15:49 | #8 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,262
|
@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. |
08 June 2020, 17:39 | #9 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,026
|
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.
|
08 June 2020, 22:23 | #10 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,262
|
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
|
21 March 2022, 17:35 | #11 |
Registered User
Join Date: Dec 2018
Location: Mugla
Posts: 6
|
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. Example : Code:
Qopenwb SYS: ICONVIEW SHOWALL Last edited by superkahraman; 21 March 2022 at 17:36. Reason: example added |
21 March 2022, 18:14 | #12 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,262
|
It also works well on AROS 68k !
Last edited by AMIGASYSTEM; 19 July 2022 at 18:48. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Clear background color for Shell window- Shell-StartUp | fc.studio | support.Apps | 13 | 25 March 2022 18:52 |
Workbench 3.1 Window Open Position | Sim085 | support.Other | 16 | 17 March 2019 02:01 |
Start script without opening a Shell window | Joel_w | support.Apps | 6 | 01 February 2019 16:56 |
Shell: need to list directory of files with their attributes | Foebane | support.Apps | 2 | 08 February 2017 22:54 |
Snapshot Amiga Shell window? | TenLeftFingers | support.Apps | 3 | 15 June 2015 16:38 |
|
|