Ambient usage - features
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 599 from 2004/11/27
    Hi all,

    I stumbled over a small problem: I can't exceute a command line for which I set-up a hotkey in Ambients Custom command hotkeys. I set-up "f4" and the command line is:

    run >NIL: System:C/MeltingPoint FILE %s FORMAT hwd DESTDIR ram:

    As type I tried "AmigaDOS" and "Workbench" but none worked :-( I also tried "exceute" instead of "run".

    Then I opened "Execute command" (please see attached screen grab) and entered the same line and here it worked.

    Could anybody please give me a hint of how to get this working?

    Thanks in advance.
  • »21.04.08 - 08:22
    Profile Visit Website
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Try a command that you are sure about first: for instance, bind F4 (the second string, the first one being the name of the shortcut) to some "echo hello" amigados command.

    And these hotkeys aren't system-wide, which means ambient must have the focus to run them.
  • »21.04.08 - 09:58
    Profile Visit Website
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 599 from 2004/11/27
    @ Fab

    Thanks very much for your advice :-)

    Ok, I could make it work the following way:

    in Ambient "Custom command hotkeys" for "f4" I entered "run >NIL: System:S/MeltingPoint" and type is AmigaDOS.

    Then I created a file in S: called MeltingPoint. The file contains: "run System:C/MeltingPoint FILE %s FORMAT hwd DESTDIR ram:"

    and it works :-)

    I don't understand why though, but if I enter this command line directely in Custom commands hotkeys it seems not to work???

    Regards

    Christoph
  • »21.04.08 - 18:23
    Profile Visit Website
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 599 from 2004/11/27
    @ Fab

    I finally installed the custom menus in Ambient. This feature is really GREAT, thanks very much.

    It permits to create custom menus and launch programs, which I find better then having the Ambient screen filled up with icons.

    Here is a screengrab of my (clean) Ambient screen.

    http://www.rmsvideo.ch/public_rms/morphos/ambient_custom_menus.png

    Thanks again Fab.

    Regards

    Christoph
  • »27.06.08 - 16:52
    Profile Visit Website
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    RMS,

    I'm glad it's useful then. A real configuration GUI for this is still planned, to make it more accessible... when we have some time. :)
  • »27.06.08 - 17:09
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Posts: 236 from 2003/7/28
    From: Canada
    It is possible to add a text field to every ambient window that has the "find" feature? I'm kinda used to this now in Vista..having a quick search in every window is nice...

    I'm not a fan of building file indexes or anything like that...but a box where I can type in some text then click find in every window would be handy :) That find function is already there on the pull-down menus....maybe there is a way to add it to the ambient window or toolbar already?
    A4000/060/PPC-200MHz, A4000T/060/PPC-233MHz, CD32, MicroA1, Pegasos 2 G4, AMD Phenom Quad Core 2.5GHz, MacMini 1.5GHz/64MB VRam...mwwmwahhh :)
  • »28.06.08 - 18:53
    Profile Visit Website
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 599 from 2004/11/27
    Hi,

    there is one more feature from DOpus Magellan which I'm missing (and would very much need) in Ambient.

    It's the possibility to print the content of a directory, either to a printer or to file. I made a screengrab from DOpus of it.

    http://www.rmsvideo.ch/public_rms/morphos/print_directory1.png


    Also, another feature, which would be very helpfull and usefull, would be to have a possibility to print, or show, or see a tree of a directory with all subdirectories in it. Here also a screengrab.

    http://www.rmsvideo.ch/public_rms/morphos/sub_directories1.png


    It would be great if you consider these features :-)

    With best regards

    Christoph
  • »29.08.08 - 06:29
    Profile Visit Website
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 599 from 2004/11/27
    Hi,

    I tried to setup a Mimetype to be able to select multiple files in a window and then create an zip archive of them.

    In DOpus I had the following set-up:

    zip -R -T -9 {d}{RsEnter archive name}{O}

    {d} = destination dir name
    {Rs...} = string requester
    {O} = all selected entries

    I something like this possible in Ambient now?

    Regards

    Christoph
  • »09.10.08 - 13:46
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Cego
    Posts: 728 from 2006/5/28
    From: Germany
    hey RMS,

    could you please send me a collection of your png icons you have on morphos? i just cant find nice png icons for my programms and all that stuff.
    Pegasos II G4 @1.0GHz, 1GB DDR Ram, Radeon 9200Pro, 240GB SSD+160GB HD, MorphOS 3.18, AmigaOS4.1 FE, Debian 8
  • »09.10.08 - 14:35
    Profile
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Mh, basically this is something you can do with ambient actions (except it doesn't have builtin requestfile/string, but it's easy to workaround this with a script and c:requestfile requeststring tool and so on).
    However the other issue is that global contextmenu entries (edited in internal->x-morphos-globalaction-file filetype) aren't displayed for a multiselection. Multiselection contextmenu works fine when the selected entries have a common action, but it doesn't help in our case.

    Anyway, you can stil achieve your goal in the meanwhile, but as key shortcut. You would add a new custom shortcut in prefs->keyboard, and in action you would do as follows:

    type: amigaos
    action string: zip -R -T -9 `c:requestfile` %sp
    flags: check "merge selection"

    You could also make a script to have something smarter than c:requestfile (especially if you cancel it).

    I'll check if global actions can be used in a multiselection for a next ambient version. :)
  • »09.10.08 - 14:47
    Profile Visit Website
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 599 from 2004/11/27
    @ Fab

    thanks vera mach for your feed-back!

    Did you try the possibility? because here it seems not to work! I tried to do it the following way:

    On Ambient I open a window, I selected 5 files aut of 50 in a drawer, then I hit the key shortcut (which is f5), then a select file window opens and then when I enter a name for the archive I get an zip error: Nothing to do!

    Do you have any idea what could be wrong?



    @ Cego

    You can get the ones I have made but most of them come from several distributions and I think are copyright of their respective authors.

    I will place them on my FTP in an archive. I will let you know when it's done.

    Regards

    Christoph
  • »09.10.08 - 17:14
    Profile Visit Website
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Mh yeah, check "cd source" too.
  • »09.10.08 - 19:12
    Profile Visit Website
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 599 from 2004/11/27
    @ Fab

    it still want work :-(

    Any other idea?
  • »10.10.08 - 17:35
    Profile Visit Website
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 599 from 2004/11/27
    @ Cego

    a directory with the icons is here:

    http://www.rmsvideo.ch/public_rms/morphos/png_icons_20081009

    Regards

    Christoph
  • »10.10.08 - 17:38
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Cego
    Posts: 728 from 2006/5/28
    From: Germany
    @rms

    thanks a lot! pretty nice icons :)

    btw, i saw a few screenshots of prostationaudio on your server. is it still possible to purchase that programm somewhere?
    Pegasos II G4 @1.0GHz, 1GB DDR Ram, Radeon 9200Pro, 240GB SSD+160GB HD, MorphOS 3.18, AmigaOS4.1 FE, Debian 8
  • »10.10.08 - 17:56
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12132 from 2003/5/22
    From: Germany
    > i saw a few screenshots of prostationaudio on
    > your server.

    I guess it's the MorphOS version of ProStationAudio Titanium from the long gone Superbundle.

    > is it still possible to purchase that programm
    > somewhere?

    https://morph.zone/modules/newbb_plus/viewtopic.php?topic_id=3836&forum=9
  • »10.10.08 - 18:51
    Profile
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    @rms,

    well, it works here. You might want to tell which zip command you use. Maybe it differs a bit on expected arguments (regarding paths, quotes and so on).

    [ Edited by Fab on 2008/10/10 23:24 ]
  • »11.10.08 - 00:24
    Profile Visit Website
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 599 from 2004/11/27
    @ Fab

    it's ? MorphOS version of zip: Zip 2.2 (16.12.2001) ported by Gabriele Greco
  • »13.10.08 - 05:08
    Profile Visit Website
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    @rms,

    ok, tried with it. Test option doesn't work so well, but it's probably a path issue. And since this is an ixemul port, i'm not too surprised.

    So, to make it work:

    zip -R -9 `c:requestfile` %sp
    + cd source
    + merge selection
  • »13.10.08 - 14:01
    Profile Visit Website
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 599 from 2004/11/27
    @ Fab

    thanks for feed-back but it still doesn't work here :-(

    Here is what I do: I select several files in some location e. g. in a drawer, then I hit f5, then a requester opens with the title "Select File" in excately the same drawer where I previously selected the files to create an zip archive. Now when I enter same name.zip I get an error:

    zip error: Nothing to do! (123.zip)
    System:C/zip failed returncode 12


    if I select a file though then I get the following error:

    zip warning: missing end signature--probably not a zip file (did you
    zip warning: remember to use binary mode when you transferred it?)

    zip error: Zip file structure invalid (IMG_1585.JPG)


    I entered the command excately as you asked for.

    Strange?
  • »14.10.08 - 05:56
    Profile Visit Website
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Not really strange since zip command is really sucky. But if i had known you tried from a subdir i would have noticed your issue.

    So, use:
    zip -R -9 `c:requestfile` %sf (%sf instead of %sp to avoid using fullpaths since zip can't handle that properly).

    And if you have any doubt, just add echo before your command to see what you are really executing (tho quotes might go away in the process).
  • »14.10.08 - 15:03
    Profile Visit Website
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 599 from 2004/11/27
    @ Fab

    THANKS, great it works now :-)

    Sorry for my lack in explanaiton...

    Regards

    Christoph
  • »14.10.08 - 16:18
    Profile Visit Website
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 599 from 2004/11/27
    Hi all,

    did anyone manage to install a mime type for html so it opens Sputnik and the page when the Icon is double clicked?

    Here I was able to have Sputnik started but the page doesn't get loaded :-(

    I used "Workbench" "System:Sputnik/Sputnik %sp" and doubleclick.

    Any idea?
  • »27.10.08 - 17:02
    Profile Visit Website
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Use "amigaos" and "run >nil: sys:applications/sputnik/sputnik %sp" instead.

    But a much better way would to just use openurl (assuming it's configurated correctly of course). Then if would be:
    (amigaos) openurl %sp file.


    [ Edited by Fab on 2008/10/27 18:50 ]
  • »27.10.08 - 17:14
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Posts: 423 from 2005/4/9
    From: magyarorszag/h...
    fab: u mean amigaDos.
    btw "openurl: unkown command" in this case.
    DEAD pegII/G4@1000.1gb ram.radeon 9200pro
    240 gigz hd.nec dvdrw.MorphOS 2.4 DEAD
    -=-=-=-
    amiga1200T.blizzardppc@180/040@25.96megz ram
    -=-=-=-=-
    zx.spectrum@3.5
  • »27.10.08 - 18:15
    Profile Visit Website