Txt Importer 1.1 [MM2+3]

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Txt Importer 1.1 [MM2+3]

Re: Txt Importer 1.1 [MM2+3]

by Edouard29 » Mon Aug 04, 2025 8:33 am

Hello all,

In case it can be useful for others, I’ve made an Excel file to generate with macro .txt Tag files to be used by plugin TxtImporter.
I attach it below.
https://drive.google.com/file/d/1BVPZAk ... sp=sharing
The file contains a “Guide” tab having a “Full Guide” § but also a “Simple Guide” § and “What to improve” § that I copy below to give an idea.

Simple Guide
1 List in one Green Sheet the files you want to Tag with the "Music List" button. You may list files from different folder by doing it again, the new ones will be added at the end.
2 Fill the Tag value you want to generate on the corresponding Tag properties columns (green columns). Then click on "Tag" button to generate the .txt files and in MediaMonkey launch the plugin "TxtImporter" on the related files.
3 Click on "Clean Files" button to delete the .txt files previously generated. Then click on "Clear Lines" button to remove the lines from this file.


What to improve
1 Correct my broken English (in the file and in the VBA code)
2 "TxtImporter" does not work with UTF-8. By default, I've put the encoding "Windows-1252" (extended Latin) which works fine for me, but not for non-Latin characters but I did not find any way to be universal.
3 Find a way to retrieved directly the first Google lyrics result on this file.


One last thing, my macro force for multiline tag a « Platform-specific new line character » (Cr+Lf for Windows) but when importing in MediaMonkey it seems to generate only Cr (Macintosh Way). It may be related with the line (line 76) code below:
Execute("itm."&tag&" = itm."&tag&"&Chr(13)&"""&str&"""") '!
It generated in my side, issues when using the Plugin “RegExp Find and Replace”. To solve this, I had to create a Regular Expression to replace all Cr by Cr+Lf shown below (if not working, the direct link : https://drive.google.com/file/d/1EZb_AS ... sp=sharing).
Image

Find what (with “Regular expression” checked):
\r(?!\n)

Replace with (with “VBScrit” checked)

vbCrLf

Re: Txt Importer 1.1 [MM2+3]

by trixmoto » Sat Jun 16, 2012 8:55 pm

It should work in MM4 without any problems. It should appear in the Tools > Script menu, but you may need to manually edit the "Scripts.ini" file.

Re: Txt Importer 1.1 [MM2+3]

by Eyal » Fri Jun 08, 2012 3:30 am

I never used this script but Auto-Tag from Tag-List works fine for me.
See last post in this thread: http://www.mediamonkey.com/forum/viewto ... f=2&t=8882

:~)

Re: Txt Importer 1.1 [MM2+3]

by ripndip » Thu Jun 07, 2012 9:19 pm

Im guessing this doesn't work for MM4 because after install it does not show up in options or Autotag from web options. Is there another area I can look for this scripts functionality?


Im looking to import tags from a list of filenames I copied from Amazon, because when I imported the CD the metadata was not imported, I run into this all the time, and this scripts seems like it can fix that.

Anyone know how to use this?

Re: Txt Importer 1.1 [MM2+3]

by trixmoto » Sat Jul 17, 2010 3:35 pm

My "Custom Report" script can create .txt files.

Re: Txt Importer 1.1 [MM2+3]

by Nachash » Sat Jul 17, 2010 3:19 pm

Is it possible to make a sort of txt exporter?

Sorry for the "little" up :D

Re: Txt Importer 1.1 [MM2+3]

by Bex » Tue Aug 19, 2008 3:54 pm

Re: Txt Importer 1.1 [MM2+3]

by estebanrey » Tue Aug 19, 2008 3:45 pm

Thanks for your help trix, sorry to be a pain but where is the wiki? Again appreciate your help, this should be an awesome tool for me in combinataion with your custom excel reports and Automate software to write txt files from the fields almost instantly.

If I can get this to work I'll be able to get my entire collection right very quickly! Great work, keep it up.

Re: Txt Importer 1.1 [MM2+3]

by trixmoto » Sun Aug 17, 2008 1:05 pm

You need to use the scripting name for the field, which might be different. Check out the wiki for the full list of fields.

Re: Txt Importer 1.1 [MM2+3]

by estebanrey » Sun Aug 17, 2008 12:04 pm

Media Monkey 3.0.3

I just don't unerstand why some of the fields update and some don't. I tried copying your example text and still no joy :(

by trixmoto » Fri Mar 07, 2008 7:30 am

Very strange, I'm not sure. Which version of MM?

by estebanrey » Sun Mar 02, 2008 4:18 pm

Hi I'm having some trouble, I'm creating the text file but only some of the fields are updating. For example I have a file called "01 - Bounce.mp3" and I have created "01 - Bounce.txt" the same directory. The text file has these lines:

Artist=Justin Timberlake featuring Timbaland, Missy Elliott & Dr. Dre
Title=Bounce
Album=Recrimination
Date=2008
Genre=R&B/Hip Hop

Now when I run the scipt only Genre and Title update, everything else stays the same. What am I doing wrong? Apart from listening to Justin Timberlake :oops:

by trixmoto » Fri Dec 07, 2007 9:31 am

This script tries to find textfiles with the same name as the music files. So, if your music file is...

F:\Music\The Beatles\1\Love Me Do.mp3

...then the textfile should be...

F:\Music\The Beatles\1\Love Me Do.txt

by pictureman22 » Fri Dec 07, 2007 3:08 am

So I'm kind of new at this. I've downloaded the script. I can't figure out how to get to the txt file, I believe it should just find it. So I'm not sure where to save the txt file along with the name of the file.

Thanks in advance

by trixmoto » Sun Nov 04, 2007 12:28 pm

Well this script assumes a single text file for each track. I don't know if there is one which takes the filenames out of a single file. Could be written though! :)

Top