Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: CueTools Output Naming Template | Incremental Folder Names (Read 2427 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

CueTools Output Naming Template | Incremental Folder Names

Hi everyone

I need your help, please. I am struggling to configure the correct CueTools naming template for batch conversions where multiple albums reside in the same folder, named, let's say, "Folder X". Note that these albums (with cue files, all), are not nested in subfolders of "Folder X". What I wish to achieve during the batch conversion, is that the output of each of these conversions goes into its own newly created folder, incrementally numbered, for example, "New Folder 1", "New Folder 2", "New Folder 3", and so forth.

This is the closest I could get, but for some reason the new folders are not numbered incrementally:

[%directoryname%\]new[%unique%]\%filename%.cue

This is another forum topic of seemingly the same dilemma: https://hydrogenaud.io/index.php/topic,101047.msg835291.html#msg835291

Thank you for you assistance.

Re: CueTools Output Naming Template | Incremental Folder Names

Reply #1
for new[%unique%]\%filename%.cue, %unique% is replaced by a number starting from 1 and will increment by 1 unless/until the output path is unique. So if %filename%.cue is already unique then %unique% would not get replaced by a number.

I don't think you can do what you want with the template tools available. Perhaps %album%[ %unique%], %artist%-%album%[ %unique%] or %filename%[ %unique%] instead of new[%unique%]
korth

Re: CueTools Output Naming Template | Incremental Folder Names

Reply #2
for new[%unique%]\%filename%.cue, %unique% is replaced by a number starting from 1 and will increment by 1 unless/until the output path is unique. So if %filename%.cue is already unique then %unique% would not get replaced by a number.

I don't think you can do what you want with the template tools available. Perhaps %album%[ %unique%], %artist%-%album%[ %unique%] or %filename%[ %unique%] instead of new[%unique%]

I thank you very much, Korth. I am going to play around some with the naming string you have suggested.

Re: CueTools Output Naming Template | Incremental Folder Names

Reply #3
Just a note. I used [ %unique%] in the examples in case a cue is processed more than once. This creates a new folder instead of attempting to overwrite the existing files.
korth

Re: CueTools Output Naming Template | Incremental Folder Names

Reply #4
Thanks, that is how I understood it. I have yet to do some conversions applying your suggested template, but it looks like it will do exactly what I needed it for.

Re: CueTools Output Naming Template | Incremental Folder Names

Reply #5
As an experiment, I have so far converted a single album several times- each time applying a different naming syntax of those proposed by Korth. What struck me is that if I apply %album%[ %unique%], %artist%-%album%[ %unique%] or %filename%[ %unique%] instead of new[%unique%], the ensuing folder names now nesting in an already long folder name, may create a path length longer than allowed by Windows.

Re: CueTools Output Naming Template | Incremental Folder Names

Reply #6
If having trouble with the path length you can convert to a different location then (if necessary) move the folders later to the desired location: 
C:\music\converted\%artist%\%album%[' ('%unique%')']\%filename%.cue
C:\music\converted\%artist%\%album%[' ('%unique%')']\%artist% - %album%.cue
C:\music\converted\%filename%[' ('%unique%')']\%filename%.cue


korth

 

Re: CueTools Output Naming Template | Incremental Folder Names

Reply #7
Thanks, Korth, I lost sight of that possibility altogether. Otherwise, I have so far completed numerous batch conversions, and they have all gone splendidly using this syntax: [%directoryname%\]%album%[%unique%]\%filename%.cue.