IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Export tags from the first file found in my folder structure
Hobnob
post Aug 24 2011, 00:11
Post #1


Member


Group: Members
Posts: 3
Joined: 24-August 11
Member No.: 15123
Mp3tag Version: 2.49



I'm trying to devise a script that will grab the id3 tags of the first track in the first album folder from each album artist folder for export to RTF, but I'm not having much luck. I've tried modifying several scripts in this forum to no avail. I want to run the script from the second level of my folder structure, which is MUSIC\first letter in name {A,B,C,...}\ALBUM ARTIST\ALBUM\track.

For example: In MUSIC\A\, there are ACDC, Aerosmith and Asia folders among others. I want the script to grab the tags from the first track it finds in each of those folders from this folder level. I'm assuming this will be the first track in the first ALBUM folder it finds within each ALBUM ARTIST folder.

If someone could point me in the right direction, I would very much appreciate it. I can format the tag structure I want myself. Thanks in advance.
Go to the top of the page
 
+Quote Post
DetlevD
post Aug 24 2011, 02:12
Post #2


Member


Group: Full Members
Posts: 5031
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.63



QUOTE (Hobnob @ Aug 24 2011, 01:11) *
I'm trying to devise a script that will grab the id3 tags of the first track in the first album folder from each album artist folder ... If someone could point me in the right direction, I would very much appreciate it. ...

Study the Mp3tag Help Manual - and perhaps some existing MTE scripts - about the function $loop and its optional second parameter.

DD.20110824.0314.CEST


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post
Hobnob
post Aug 25 2011, 05:07
Post #3


Member


Group: Members
Posts: 3
Joined: 24-August 11
Member No.: 15123
Mp3tag Version: 2.49



QUOTE (DetlevD @ Aug 24 2011, 03:12) *
Study the Mp3tag Help Manual - and perhaps some existing MTE scripts - about the function $loop and its optional second parameter.

DD.20110824.0314.CEST


Thanks for the hint. I actually found the Help Manual about 10 min after I posted. The problem was that I was putting the cart before the horse, looking at MTE scripts and trying to work backwards from them to get what I wanted without knowing how the scripting functions actually work. It took me all of about 5 min to come up with the script I needed after reading the manual. The script is so simple that it's somewhat embarrassing that I asked. Anyhow, thanks again.

In case anyone is wondering, the loop I needed is:

$loop(%_parent_directory%,1)
$loopend()

This post has been edited by Hobnob: Aug 25 2011, 05:16
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th October 2014 - 10:27