I've recently moved laptops and the absolute path for my media has changed. I have a number of renaming Actions (like _FILENAME > c:\Users***\Music\0 - Sorted%albumartist%%year% - %album%$num(%track%,2) - %artist% - %title%) that use the old path.
Is there a quick way to update them to the new path (without editing them all)? Or is there a better way to set them up with a variable that can be set once and used in multiple Actions?
I'm sharing a configuration with a friend & wanted a way to update the filepaths easily.
The only thing I came up with was creating an action called Global Variables.
1st I changed all my absolute paths to have variables %DATABASE% & %ARCHIVE% are a couple examples.
So now the paths are based on whataver value is in those two Variables (tags)
The Global Values Action can be configured to set the value of DATABASE & ARCHIVE which automatically sets or changes the path.
The downside here is you'll need to run this Global Variables action before you can do any actions where a path is needed / involved
The good news however is you'd have the ability to open one action. Change all the "Global Variables" & those changes would have effect throughout all your actions.
Just be sure to add a remove tag action to your action groups to rid your files of unwanted tags in the end.
In my case I think this is the easiest way to be able to share a configuration with another user & still be able to utilize actions that import & export files from various paths.
For you if you update or move your files often this could be useful.
You perform changes on files to add these "global tags", altering the modification date
This means that saving changes is slower even when the actual content is not changed
During the next backup even files that are unchanged will need to be copied due to the changed modification date
It complicates the overall workflow as you always have to ensure to add/remove these "global tags"
I'd personally use something like "Find in Files" in Notepad++.
You select your actions folder (C:\Users\<USER>\AppData\Roaming\Mp3tag\data\actions), search for the path in all your action files and can replace it with something else in a single step.
However make SURE to backup your actions folder before doing this and also triple-check that the path you are replacing is valid as directly editing action files is inherently risky.
Another rough idea would be to use a environment variable from your OS.
This way you can set it once with something like SET MyMusicPath=C:\Users\ABC\Music\Test
or SETX MyMusicPath C:\Users\ABC\Music\Test
and read it from Mp3tag with:
I like this idea better than mine I use this from time to time. I'll have to teach my less savvy counterpart how to preform this change on their end. If it fails I'll just send them my configuration or have them re-download it. It's not terribly complicated a simple find & replace they'll just need to have my path(s) so they know what to replace.
If the notepad++ option fails for whatever reason we'll give this a shot as well:
Thanks Guys (Or Gals...people...non-bots..idk its 2025)