Long time user of dBpoweramp and consider myself pretty well versed with dynamic naming, but I'm pulling my hair out with this one.
I convert different lossless sources to ALAC, typically either WAV->ALAC, FLAC->ALAC, or ALAC->ALAC if I need to resample.
Directory structure is like this:
X:\Some\Folder\Artist - Year - Album (wav)
X:\Some\Folder\Artist - Year - Album (flac)
X:\Some\Folder\Artist - Year - Album (alac)
What I'm trying to do is replace the existing codec indicator in the directory with a new one, e.g., replace (wav) with (wav-alac), or (alac) with (alac-alac):
X:\Some\Folder\Artist - Year - Album (wav-alac)
I've spent hours using numerous combinations of [BACKFOLDER]1[] with [GRAB], [RIGHT], [REPLACE], [IFEQUALS], [IF], etc. and nothing seems to work. The closest I've gotten is a direct copy of the directory name, with zero replacements (i.e., destination retains the (wav) at the end).
[REPLACE] seems like the most straightforward, but I can't get it to work and documentation on the site is unclear:
[REPLACE]search,replacement,string[] string is searched for the search string and is substituted with the replacement. To use tags write string as [tag]tagname[].
So does this mean "string" (third argument) is searched for in "search" (first argument), and replaced with "replacement" (second argument)? I.e.,
[REPLACE][BACKFOLDER]1[],(wav-alac),(wav)[] ?
This doesn't work.
I've also tried [REPLACE](wav),(wav-alac),[] and other combinations of empty arguments and shifting of arguments, none work.
[IFEQUALS] and [IF] are giving similar (non) results. Using [GRAB] and [RIGHT] to do string comparisons/operations has also proved fruitless. I can use [RIGHT] to get the last 5/6 characters of the folder (i.e., "(wav" or "(flac)"), but then can't really seem to do anything with it. [GRAB] also doesn't seem to have the ability to grab everything but the last 5 characters, unless this just isn't clearly documented again.
I can't imagine this is that complicated of an operation. Once I can get this simple first operation to work, I can get more creative with dynamic placement and usage of the encoding codec.
Help?
I convert different lossless sources to ALAC, typically either WAV->ALAC, FLAC->ALAC, or ALAC->ALAC if I need to resample.
Directory structure is like this:
X:\Some\Folder\Artist - Year - Album (wav)
X:\Some\Folder\Artist - Year - Album (flac)
X:\Some\Folder\Artist - Year - Album (alac)
What I'm trying to do is replace the existing codec indicator in the directory with a new one, e.g., replace (wav) with (wav-alac), or (alac) with (alac-alac):
X:\Some\Folder\Artist - Year - Album (wav-alac)
I've spent hours using numerous combinations of [BACKFOLDER]1[] with [GRAB], [RIGHT], [REPLACE], [IFEQUALS], [IF], etc. and nothing seems to work. The closest I've gotten is a direct copy of the directory name, with zero replacements (i.e., destination retains the (wav) at the end).
[REPLACE] seems like the most straightforward, but I can't get it to work and documentation on the site is unclear:
[REPLACE]search,replacement,string[] string is searched for the search string and is substituted with the replacement. To use tags write string as [tag]tagname[].
So does this mean "string" (third argument) is searched for in "search" (first argument), and replaced with "replacement" (second argument)? I.e.,
[REPLACE][BACKFOLDER]1[],(wav-alac),(wav)[] ?
This doesn't work.
I've also tried [REPLACE](wav),(wav-alac),[] and other combinations of empty arguments and shifting of arguments, none work.
[IFEQUALS] and [IF] are giving similar (non) results. Using [GRAB] and [RIGHT] to do string comparisons/operations has also proved fruitless. I can use [RIGHT] to get the last 5/6 characters of the folder (i.e., "(wav" or "(flac)"), but then can't really seem to do anything with it. [GRAB] also doesn't seem to have the ability to grab everything but the last 5 characters, unless this just isn't clearly documented again.
I can't imagine this is that complicated of an operation. Once I can get this simple first operation to work, I can get more creative with dynamic placement and usage of the encoding codec.
Help?
Comment