# passing multiple selected items to external tool

**URL:** https://community.mp3tag.de/t/passing-multiple-selected-items-to-external-tool/16451
**Category:** Support
**Created:** [December 29, 2014, 2:14am UTC](https://community.mp3tag.de/t/passing-multiple-selected-items-to-external-tool/16451 "2014-12-29T02:14:32Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [January 1, 2015, 9:39am UTC](https://community.mp3tag.de/t/passing-multiple-selected-items-to-external-tool/16451/8 "2015-01-01T09:39:48Z")

</div>

> [@Tezza](#):
>
> ... I did think of that before but was hoping that there was an easier method that I just hadn't spotted. Seems kinda obvious to have a way to pass a selected list to another program. ...

Invoking a commandline executable file needs always a special look for a method how to transfer one or more filenames into the process of the executable file.

In case of the "xrecode.exe" there seems to be no input option for a simple "line by line" "vertical" list file.  
But there is the option "/sendto .. .. ..", which adds all specified files/folders as input parameters.  
Anyway ... I think you can use that.  
You have to write a Mp3tag MTE script, which is able to create such a "item by item" "horizontal" "space separated" list of filenames, with each parameter included in double quotes.  
This should be feasable, using the commands, respectively functions, $loop, $put, $get and so on from the Mp3tag Export Scripting Language.  
Note: the option "/sendto .. .. .." has a risk for automated processing, because of the length limitation of the DOS command line.  
See also ...  
[http://technet.microsoft.com/en-us/library/bb491037.aspx](http://technet.microsoft.com/en-us/library/bb491037.aspx)  
[http://support.microsoft.com/kb/830473/en-us](http://support.microsoft.com/kb/830473/en-us)

Regarding the wanted xrecode processing, you can take into account to invoke xrecode.exe consecutively, for each given media file separately, one by one, from within the batch file, created by the Mp3tag export feature.

> [@Tezza](#):
>
> Okay I will take a look at a scripting option then but I have no idea what an MTE file is. ... I've only scripted in PHP so could use that I to save time suppose. ...

If you want to get an impression how to create a batch command file by using the Mp3tag Export feature, then have a look at this FPCALC example ...  
[AcoustID](https://community.mp3tag.de/t/13211/4)

There are other example scripts buried in the Forum, you gotta find them.

DD.20150101.1139.CET

---

_[View the full topic](https://community.mp3tag.de/t/passing-multiple-selected-items-to-external-tool/16451)._
