External application parameters...

Discussion in 'Helium Music Manager Discussion' started by EddieVan, Jan 17, 2004.

  1. EddieVan Member

    External application parameters...

    A couple of Q's...

    What exactly do the parameters expand into? Let's say I have a couple of MP3s selected... say \\CPU1\MUSIC\MP1.mp3 \\CPU1\MUSIC\MP2.mp3 and \\CPU1\MUSIC\MP3.mp3

    According to the "help" shown with the external apps dialog, I see the options:
    %directory%
    %filename%
    %filenames%
    %wafiles%

    Also, how can I execute a command on all the files in an album? Say I only have one of of the above MP3s selected, and I would like to execute:

    run_mp3 -f <file1>
    run_mp3 -f <file2>
    ...

    for each file in the album? or for each file selected?
  2. EddieVan Member

    I should also mention that I have seen in the FAQ some examples using %file% or %files%... these do not appear to be documented within helium. I presume they are synonyms to %filename% and %filenames%?

    [minor note: In those example, %directory\%filename% is used when I believe it should be %directory%\%filename%... minor support issue!]
  3. Tirmellon Member

    Where did you see %file% ?
    It is not correct.

    To your problem described above:

    If you want to send 1 file (and use the application as doubleclick-action) you should try
    "%directoy%\%filename%"

    If you want to send several files, try the parameter
    %files% or %wafiles%
    (but you cannot use these for doubleclick-actions

    /Mathias
  4. EddieVan Member

    %file% and %files% and %directory\%filename% can be seen in the FAQ section of this forum. Check the announcement: (4) Exteral Applications... I only suggest that these be correct as starting users may try to use those examples as is.

    As to %wafiles% [or %files%?]... given my example of selections, what does it expand into? I still don't know which of these it becomes:
    (a) run_program <file1> <file2> <file3>
    (b) run_program <dir/file1> <dir/file2> <dir/file2>
    (c) run_program <file1>
    run_program <file2>
    run_program <file3>
    (d) same as (c) with directory [i.e. full path to file1, file2, file3]
    .
    .
    .

    Again, is %filenames% [which I see in the external apps dialog] the same as %wafiles%? Which, I presume from your message, is the same as %files% [which is NOT listed in the dialog]?

    I think examples would clarify how all the parameters expand more easily than the descriptions given. I should also note that it is option (d) above that I am attempting to create!
  5. EddieVan Member

  6. EddieVan Member

    Don't tell me that even the developers don't know the answer to this one! This should be a well documented thing!!!

    I really need to know this in order to interface with some command line tools I'm using. And I just can't seem to get them to work.
  7. Fredrik Heidgert Administrator

    Sorry for not answering sooner.

    %files% will do the following:
    <application> <file1> <file2> <file3>

    %wafiles% was created initially for Winamp, since they use a different kind of way to add multiple files to a playlist:
    <application> <file1>
    <application> <file2>
    <application> <file3>
  8. Wabiloo Member

    Well, then my turn to ask a question (since nobody replied to my post a few weeks ago, cf. http://www.helium2.com/eng/forum/viewtopic.php?t=811).

    How can you get the following?
    <application> <dir\file1> <dir\file2> <dir\file3> etc. (where dir obviously is the correct one for each such file).

    This format is required by Windows Media Player, which I use in addition to Radon
  9. EddieVan Member

    Thank you for that information.

    IMHO: A full explanation of all the % parameters for external applications would be of a great use to users. Simply place it in the FAQ are with all the other external application FAQ's!

Share This Page