I have a text-file with a lot of info, but the start is always something like this:
Pepi Ginsberg
November 14, 2009
Schubas Tavern
Chicago, Illinois
The first line is always the ARTIST. Can I use an ACTION to put that first line from the textfile into the ARTIST tag?
Have you already tried doing it the same way as suggested here:
I have a .txt-file with all titels from songs. They are listed simply under eachother in a list.
With Convert Textfile to Tag I can add those to the tag Title.
While that works perfect, I prefer to have it as a action. So I can do more actions at once, to save time eventually.
Can this be done?
[image]
Just using ARTIST instead of TITLE?
Thank you, that did it. Not sure how, but that is good for now. I have made some adjustment and it worked. It looks like this:
With this Action Group you overwrite the content in ARTIST from the 3rd Action Group line "($if($eql...)" with the content of %temptitle% in the 4th line. IMHO the 3rd line is not necessary.
You could test it without the 3rd line.
Correct, line 3 is not needed.
While on the subject, is it possible to read only line 3 from the text file and put that in a tag?
No. The text file has to be prepared beforehand.
It is not possible to only read line 3 from the text file.
But you can import the complete text file as you already do it. Then extract the needed parts with $meta(TEMPFILE,n) where n is the line you want -1.
Example:
If you want to extract "Schubas Tavern" in your example, you would use $meta(TEMPFILE,2) because this content can be found on line 3:
In my test I have expanded the Action group like this:
For your example data, this would result in:
You can, of course, remove the TEMPFILE field afterwards if you no longer need it.
AWESOME! This means I can very easy take more lines (just in theory, not that it is really needed! This makes things so much easier!! THANKS!