INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Send to External Program parameters  (Read 1408 times)

aleeg

  • Recent member
  • *
  • Posts: 5
Send to External Program parameters
« on: June 20, 2011, 09:43:54 am »

I would like to send a selection of tracks in one go to an external program, a windows batch program that can receive a list of tracks.
In the default setting of Send To it only says "[Filename]" but I have not been able to find anywhere which other parameters exist or how a pattern can be defined.

Following the credo "if you think there is something JRiver can't do, you're probably wrong" I would like to ask you if and how it would be possible to have a selection of tracks (all selected from the tracklist of an album) to be passed as a parameter to an external program?

Anybody?
-
aleg
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Send to External Program parameters
« Reply #1 on: June 20, 2011, 11:58:29 am »

I believe the send to command will do:

For each selected track {
   external_program [filename]
}

rather than

external_program [filename1] [filename2] ...
Logged
The opinions I express represent my own folly.

aleeg

  • Recent member
  • *
  • Posts: 5
Re: Send to External Program parameters
« Reply #2 on: June 20, 2011, 12:12:53 pm »

Hi MrC

That's indeed what it's doing now.
Does that also mean it is the only way it can work within MC?
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Send to External Program parameters
« Reply #3 on: June 20, 2011, 12:25:52 pm »

Since the maximum string length of the Windows command line parameter is about 8k, at some point, passing a list of long path names becomes an issue.  Then MC would have to handle this, once again, by calling the external program multiple times.  So it is no better off really.

If you want a list of things to operate on, perhaps exporting to a text file would work; downside is you'd have to manually launch your external program, or batch script.
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up