Open folder and files from shell
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    walkero
    Posts: 102 from 2006/3/1
    I am looking for a shell command that might exist on Morphos that would do the following. On AmigaOS 4 we have WBRun which has different behavior depending the file, i.e. if you give it a path it will open a Workbench window with that path in it, if you provide a file, it will open that file with the default tool like unarc for the lha files or multiview for the text files, but if you give it an executable, this will be executed as it is run from Workbench.

    Sure, WBRun exists on MorphOS as well, but it misses some of the features I described above.
    So, I am looking for a similar tool in MorphOS. Does anyone know a tool like that?

    Thank you all for your help.
  • »08.10.22 - 23:25
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    walkero
    Posts: 102 from 2006/3/1
    As it happens every time, you might search for hours for something, and as soon as you post a question in a forum, you get the solution the next minute. I think it happens to everyone, right?

    Anyway, I found that there is the command Open in MOSSYS:C which works the way I need it, and it is awesome.
    Please ignore my question above.
  • »08.10.22 - 23:41
    Profile Visit Website
  • MorphOS Developer
    geit
    Posts: 1031 from 2004/9/23
    As far as I remember I also added URL support. :)

    I use that command all the time.
  • »09.10.22 - 01:12
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    walkero
    Posts: 102 from 2006/3/1
    Yeah, it is pretty good, and I didn't know about it.
    Is there a place where someone can find documentation for all the commands that come with the system? Or a way to do it inside the shell?
  • »09.10.22 - 01:28
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Tcheko
    Posts: 510 from 2003/2/25
    From: France
    Quote:

    walkero wrote:
    if you give it a path it will open a Workbench window


    Just type... open.

    And you get an ambient window located at the shell path.
    Quelque soit le chemin que tu prendras dans la vie, sache que tu auras des ampoules aux pieds.
    -------
    I need to practice my Kung Fu.
  • »09.10.22 - 08:26
    Profile Visit Website
  • MorphOS Developer
    geit
    Posts: 1031 from 2004/9/23
    Quote:

    walkero wrote:
    Yeah, it is pretty good, and I didn't know about it.



    It is just performing a double click on a file or calling openurl using it as argument. So basically it is doing nothing but redirecting the arguments.

    You can also specify any number of arguments, which is quite handy sometimes.

    If you want a more specific drawer to open, you can use rexx.

    RXCmd AMBIENT "LoadURI *"file://sys:c?view=icons&mode=thumbs*""


    [ Edited by geit 09.10.2022 - 15:21 ]
  • »09.10.22 - 14:17
    Profile