How can I rename the source folder using the album tag ?
I have absolutely hundreds of albums that have the file tags neatly arranged , but the folders that contain those files are a pain to sort , because the folder 'name' often does not accurately describe what kind of music is actually in the folder
Here's an example, currently i have a folder on my desktop called simply Greatest Hits 2CD's
all the files within that folder have the album tag ABBA Gold Greatest Hits
What do i need to do within MP3TAG , so that it renames the folder to ABBA Gold Greatest Hits ?
Ok , i worked out how to do this , following the same logic to a question i asked a long time ago (i'd lost the original action i created , when i installed a newer version of MP3TAG) , anyway -
create a NEW action in the action group
Action type Format value Field: _DIRECTORY Format string: %album%
i then highlight all the files in that folder , and apply the above action
This does exactly what i wanted to achieve in my first question
So ! , now i have a similar problem that appears to be a lot more complicated !
Here's the example
i have a 'parent folder' which is named The Cure , if i click on that folder , there are two sub-folders named CD1 and CD2 each with 15 mp3 files .
All the mp3 files in both of these subfolders have the album tag Cure (The): Greatest Hits
if i apply the above action to all the files in subfolders CD1 and CD2 , the parent folder name remains un affected - but ! - it moves all of the 30 files into onenew subfolder , and this is named Cure (The): Greatest Hits .
The sub folders CD1 and CD2 do not exist anymore
how can i get it to rename the parent folder <b>Cure (The): Greatest Hits</b> ?
I'd be happy for the subfolders to either be renamed Cure (The): Greatest Hits 1 and Cure (The): Greatest Hits 2 , or preferably , to get rid of the sub folders all together and put all 30 mp3 files in the parent folder.
I would use an absolute path ... I am pretty sure that you have a pattern that consists of the contents of the tag fields.
That would not leave empty folders, if you "format value" _DIRECTORY with the absolute path
It does. It is even a recommended procedure in the FAQ section of the forum: /t/8016/1
And no: MP3tag does not copy files with any action or converter, there is always only one file.
And yes, you end up with nested folders if you use the relative path. It never happens with an absolute path.
So I stick to my advice in post 7.
Try it with a 'absolute' path, the colon is stripped out and it creates the specified folder path under the current working directory.
I did and it did not behave in the way you described but just like I described it.
As you get the colon stripped out which is an illegal character for a filename (if it is relative) there must be something wrong with the way you set the path.
Try ot leave out the last backslash.
Actually we are both right, as I wasn't being specific enough.
Absolute paths (drive letter included) work for _FILENAME (Alt+1) but not for _DIRECTORY renames (Alt+5) which is what I was trying to accomplish.
Alt-1 and Alt-5 refer to the functions in the Convert menu.
I refer to the actions and an action of the type "Format value".
And with this action for _DIRECTORY you do get a renamed folder with all the files that are in the source folder moved to the target folder.
Correct, which is what I was testing with, NOT the "Action group" scripting, this was based on the assumption/guess that most users will be using the 'Convert' menu options rather than writing action scripts.
Now if the two methods result in different results using the same formatting pattern, that may be indicative of an difference/error/glitch/bug in the way that MP3tag handles the scripting from the two sources and more testing is required to determine why this occurs, or it maybe that _DIRECTORY should be disallowed in the "Tag to Tag" convert.
On the other hand any differences may be deliberate and if so a proviso should be included in the user manual/help to inform of this.