Create Archive from Mos menu problem??
  • Butterfly
    Butterfly
    Condor
    Posts: 99 from 2005/9/1
    From: Zagreb/Croatia
    Hello to all Mos Gurus.
    I found one strange problem with Create Archive from Mos menu.
    Example:

    In directory Work:Emulator/ScummVM/Games I select MMansion directory and select Create Archive from menu.
    After I enter name,LHA create mmansion.lha

    But after opening that archive, instead of MMansion/...files I have Work:Emulator/ScummVM/Games/MMansion/...files
    Full path from root.

    I try to change mime config for Create Archive menu, but without any luck.

    About mime prefs. Is there any docs about all that strange "shotcuts" in some mime type settings?

    MacMini 1.42, Mos2.5 registred.

    Thanks
  • »07.06.10 - 11:27
    Profile
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    If you want to modify the behaviour, just edit internal->x-morphos-globalactions-directory.

    I don't know what you mean with shortcuts. Do you mean the placeholders like "%sp"? If yes, they're not that strange, and documented in the help bubble of the command string.

    So, if the default create archive action isn't good enough for your need, you can change it with some more advanced command (or DOS/REXX script).
  • »07.06.10 - 12:06
    Profile Visit Website
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    In fact it behaves exactly as you describe, packing files with full paths. The definition of "Create Archive..." action needs to be corrected. The original definition looks as follows:

    MOSSYS:C/LHa a -r -a `MOSSYS:C/RequestFile` %sp

    You have to replace "%sp" with "%sf", which only passes the selected directory name to LhA, instead of the full path.

    All these strange shortcuts are documented in a bubble help for the command string gadget. Just place mouse pointer over it and wait a few seconds until bubble help appears.
  • »07.06.10 - 12:07
    Profile Visit Website
  • Butterfly
    Butterfly
    Condor
    Posts: 99 from 2005/9/1
    From: Zagreb/Croatia
    Thank You Fab and Krashan for quick reply, I will try with "%sf". Also thanks for bubble help info. (Stupid me :oops:)
  • »07.06.10 - 12:26
    Profile
  • MorphOS Developer
    kiero
    Posts: 129 from 2003/2/28
    can't check now if it's already enabled, but when you do this change you should also enable option to change working directory to the current one.
  • »07.06.10 - 12:50
    Profile Visit Website