INTERACT FORUM

More => Old Versions => Media Center 16 (Development Ended) => Topic started by: aleeg on June 20, 2011, 09:43:54 am

Title: Send to External Program parameters
Post by: aleeg 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
Title: Re: Send to External Program parameters
Post by: MrC 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] ...
Title: Re: Send to External Program parameters
Post by: aleeg 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?
Title: Re: Send to External Program parameters
Post by: MrC 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.