Open selected files with a button program

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
zrrx
New Member
New Member
Posts: 1
Joined: 2023-06-23, 15:57 UTC

Open selected files with a button program

Post by *zrrx »

Hi guys, i addeded a MP3Tag button in the bar to open selected files with MP3Tag. well the problem is the next, when i select 4 out 5 files and i click the mp3tag button, it doese't open the selected files, it just open the file where the cursor its over.
Guys can u help me with this?

Image: https://ibb.co/4TVpKk5
User avatar
Dalai
Power Member
Power Member
Posts: 9964
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Open selected files with a button program

Post by *Dalai »

Well, you don't have any parameter in the Parameter field. Try %P%S in this field. Note that this seriously limits the number of files that can be (successfully) transferred to the called program (command line length limit). It's better to let TC create a list which is then processed by the called program. The latter must support list files, of course. I'm currently trying to find out if MP3tag supports it.

[ADD]
Doesn't look like MP3tag can understand a list file: https://docs.mp3tag.de/command-line/
Though I'm wondering how its context menu extension works with multiple selected files...
[/ADD]

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3378
Joined: 2003-05-06, 11:46 UTC

Re: Open selected files with a button program

Post by *Sir_SiLvA »

Dalai wrote: 2023-06-23, 17:40 UTC I'm currently trying to find out if MP3tag supports it.
It does not: https://docs.mp3tag.de/command-line/

Code: Select all

Start with directory 
Mp3tag.exe /fp:"<full-qualified path to directory>"

Starts Mp3tag in the specified directory using the directory as working directory.

Start with file 
Mp3tag.exe /fn:"<full-qualified file name>"

Starts Mp3tag with the specified file using the directory of the file as working directory.

Add directory or file 
/add

Use this in combination with /fp or /fn to add files to the file list. Please note, that files are not automatically sorted when added to the file list.

Further Commands 
Mp3tag is built as an interactive program, further commands are currently not planned.
so the parameter are rather limited so for the button the better parameter is "%P" only imho
Hoecker sie sind raus!
User avatar
Dalai
Power Member
Power Member
Posts: 9964
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Open selected files with a button program

Post by *Dalai »

2Sir_SiLvA
Yes, probably. Though this makes MP3tag add all files to its list. But that's apparently how things are handled.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Post Reply