Export or backup all tag fields

Follow the instructions in post #1 of this thread and you have a chance to reach your goal.

DD.20111220.0035.CET

Like I said, I really don't understand what's going on and could do with some basic guidance to help me learn. I think I've done the first steps as instructed. In the screenshot (capture1.jpg) is the Export dialogue, sitting on top of an artist folder with two album sub-folders.

The instructions in post #1 say, "you can use these export configurations". I typed in "002 csv tag dump" as a new export configuration, ran it and got a text file named "New Export File.txt" - I've attached that.

My aim is to be able to export from an artist folder all the tags and their values that are present in any album folders, not just the album name and track titles.

I've looked in the design of "002 csv tag dump" and really don't understand what I am seeing.

There is a line that says, "Use the loop(...) command do loop over specific fields of your files" - and I guess I need to learn what that is talking about. What is a loop(...) command? Where do I go to learn all this stuff? Help, please!


New_export_file.txt (1.02 KB)

The tool "Export or backup all tag fields" is made for people, who must not understand any line of code in the automatically created export scripts.
Applying the readymade created export scripts is only a matter of executing them, not looking into the export scripts or edit them.
Important are the result output files of type csv, html and text, which have been created by the readymade export scripts.
Note: You have not to create a new export script for yourself.
Note: You have not to type in any name for a new export script.

Before you try another attempt to install and apply the backup tool, it seems to be necessary, that you remove your erroneously manually created report scripts from the list of export scripts.
Open the Mp3tag export dialog and remove all export scripts with names starting with "002 ...".

Please go back to post #1 in this thread.
Install the "Mp3tagCompleteTags.exe" as described in the "Installation" instructions.
Make sure to apply the three steps in the order 1, 2, 3.

Then follow the instruction steps in the paragraph "Then the usual export procedure is".
Make sure to apply the steps in the given order.

Then the Mp3tag export dialog should be opened automatically (if not, then open it with [Ctrl+E]) and you execute the readymade export scripts to create the output files, which you want to work with in your further workflow.

Hmm ... your workflow ... please explain ... for what purpose do you need all the values from the tag-fields to be stored in external files outside of Mp3tag?

DD.20111220.0709.CET

Thanks very much for the helpful reply.
Purpose - I want to export the tags to see if I can find out why my Squeezebox Server software is sorting some artists into incorrect locations, even though the tags seem correct. There must be something I'm not seeing on the screen.

I've done the following:
0. Removed from the export dialogue the 002... I had created

  1. put Mp3tagCompleteTags in a folder
  2. run Mp3tagCompleteTags (note: it had previously been run - does running it a second time stop it working?)
  3. set the working path parameter, including quotes (note: already present from the first running of Mp3tagCompleteTags)
  4. selected the files to examine
  5. right-clicked the selection, chose tools/Mp3tagCompleteTags, and got the result shown in the attached screen shot capture1
  6. opened the export dialogue which does not have 002... etc See screen shot capture2

Are you able to suggest how I might get this to work?



In the Capture1 file, did you click on OK in the little Mp3tagCompleteTags Popup?
You have to do this before you open the Export dialog.
Well, first click on OK on the Mp3tag v2.49a Popup, then on the Mp3tagCompleteTags Popup

What's the content of the 001 Generate file?
You can also delete it and try again

Thanks for the reply.
Yes, I did click on the popups, first the one from Mp3tagCompleteTags (which was on top) and then on the other one.

The 001 Generate file contains this:
$filename(C:Users\Us\AppData\Roaming\Mp3tag\data\columns\AutoColumns.Names.txt,ANSI)$loop(%_path%)$regexp($list($char(9),$char(9),$char(9)$char(13)$char(10)),'\t(.+?)\t.+?\t\r\n','$1\r\n')$loopend()

I have now deleted that 001 file, re-run Mp3tagCompleteTags and now have a new 001 file which contains exactly the same entries.

And there are no files in the folder 'columns' specified in the filename statement in the 001 file.

Any more clues for me???

Can you run this export code and give me the result?
(make a new config and paste this code)

$filename(Mp3tag varinfo.txt,utf-8)Windows Appdata Path:
$getenv(appdata)

Mp3tag Program Path:
$getenv(MP3TAGAPP)

Mp3tag Data Path:
$getenv(MP3TAGAPPDATA)

Is Mp3tag installed on Windows?

You can disable the Mp3tag Popup at "File > Options > Messages" and untick [ ] after change.

QUOTE (dano @ Dec 23 2011, 21:56) <{POST_SNAPBACK}>
Can you run this export code and give me the result?

(make a new config and paste this code)

$filename(Mp3tag varinfo.txt,utf-8)Windows Appdata Path:
$getenv(appdata)

Mp3tag Program Path:
$getenv(MP3TAGAPP)

Mp3tag Data Path:
$getenv(MP3TAGAPPDATA)

Is Mp3tag installed on Windows?

You can disable the Mp3tag Popup at "File > Options > Messages" and untick [ ] after change.

Hi - thanks very much for your interest and help!

I hope I've done this right - I went to the export dialogue in mp3tag, clicked new, and named it "Dano". What popped up was a window containing what I recognise as the content of the files I have seen previously, referring to "loop" (and I don't understand what they are). I deleted all that content and pasted your code in its place, and ran the resulting export. The file created contained this:

Windows Appdata Path:
C:\Users\Us\AppData\Roaming

Mp3tag Program Path:
C:\Program Files\Mp3tag

Mp3tag Data Path:
C:\Users\Us\AppData\Roaming\Mp3tag

My pc is running Windows 7, and mp3tag is installed - and has tagged many, many files for me.

I hope that's all OK

It seems you did it right.
The result looks good so I really wonder what is going wrong.

I've made a version with a little debug info, replace the old exe file with the one from the _debug.rar file Download

unrelated to the previous discussion:

In the new version 1.8 I've added a html table template that includes all the supported ID3v2 frame names in the table header line so you can see if a tag name resolves to a standard frame.
There is now also a second AutoColumns file with frame headers.

Thank you, Dano, all reports are working fine!
Good idea to publish the ID3 frame names too.

DD.20111223.1323.CET

Thanks again - I've downloaded the new file, replaced my previous version and run it from the same folder as the original.
Next - in mp3tag I went to tools/options/tools, mp3tagscompletetags was still shown there with the correct parameter. I OK'd the boxes to return.
Then a right click on the selected files in mp3tag, tools/mp3tagcompletetags produced first the message "please confirm when Action has finished" followed by an error message, see the screen shot.


Your screen shot is missing.

Sorry, forgot to click the upload button - I've just put it there now.

Thanks. Can you run the 001 Generate export manually through the export window?
What happens?

I did Ctrl/E, highlighted 001 Generate, clicked OK and got a confirmation window - see screen snip.

The created file "autocolumns.names.txt" consists of the following words 25 times (and COMMENT for the tracks from one of the two albums that has comment tags)
ALBUM
ARTIST
GENRE
TITLE
TRACK
YEAR


AutoColumns.Names.txt (1.14 KB)

Thanks, now I can see the problem. There is something wrong with the path in the export file 001 Generate:
You said the file started with this code:
$filename(C:Users\Us\AppData
well it should be
$filename(C:</b>Users\Us\AppData
so the important backslash after c: is missing (I don't know why that happened)

Ok to check if this error persists go to the menu :mt_act: Actions [press Alt+5] and delete the action called '&Export#&Generate'
Then again delete the Export 001 Generate

Then select your files and start the tool

If it still doesn't work then go to the folder
C:\Users\Us\AppData\Roaming\Mp3tag\data\actions and find the file '&Export#&Generate.mta'

Open it with a text editor and tell me what's in it.

The missing \ is my mistake - I typed the path wrongly in the settings.ini file :frowning:
(First time I tried to run this tool it failed because it couldn't find mp3tag, so I used the settings.ini file)

I have deleted the two things, re-run Mp3tagCompleteTags.exe, selected the files then right-click/tools/Mp3tagCompleteTags. After clicking the "Action finished" box, along comes a debug message - see screen shot. No file is output.

The .mta file contains this:
[#0]
T=15
F=001 Generate
1=C:\\Users\\Us\\AppData\\Roaming\\Mp3tag\\data\\columns\\AutoColumns.Names.txt
2=0
3=0


The path looks good now. Can you check the C:\Users\Us\AppData\Roaming\Mp3tag\data\columns dir if there are any files in it?

Important: Please close the Mp3tag Info Popup before you confirm the "Action finished" box.
Edit: probably not important but just to make sure

And go to "File > Options > Messages" and untick [ ] after change to disable that message in the future.

All working now! Thanks very much for spotting the error in the path name I'd typed.

Now I need to get in the tags and find out what is wrong to cause the Squeezebox Server software to mis-sort some artists.