CMD Line Options to File Types
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    XDelusion
    Posts: 602 from 2010/10/27
    Hello, I am interested in creating a FileType for MPlayer, though I don't fully understand how to make this work.

    The way it is set now, I am able to double click on an AVI file and Mplayer will load with the full GUI, though it does not load the file I double clicked on, rather I have to use MPLayer itself to locate and load the file. How do I resolve this?
    "I hope life isn't a big joke, because I don't get it." - Jack Handey

    Registered MorphOS user, Amiga user, and Atari 8-bit user.
  • »06.12.11 - 22:23
    Profile Visit Website
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Go to Ambient preferences -> MIME and edit "video" node. To be noted Ambient MIME types have a family concept, so actions defined for a family will apply to any file matching video/* MIME type, unless a type redefines the action.

    Then add a new action :
    - Name: "Play with MPlayer" for instance.
    - Add a new command : "workbench" type, and "path:to/mplayer/GMPlayer %sp" as command string.

    As event type, you can select "DoubleClick".
    You can also check "change working directory to source" (ASL requester will then open in the browsed directory when called from MPlayer) and "merge selection" (all selected files in Ambient will be added to MPlayer playlist if you perform the action on the selection).

    [ Edited by Fab 07.12.2011 - 00:06 ]
  • »07.12.11 - 00:05
    Profile Visit Website