I am using a script that I found in this forum to export to XSPF playlist format.
It works fine for relative paths, but for absolute paths when using MP3Tag's %_path% command it does not result in the correct format of path required by XSPF, so the playlist file does not work.
How can I change this kind of path: T:\Temp\Sample Files\Audio Formats\out2.flac
into this kind of path: file:///T:/Temp/Sample%20Files/Audio%20Formats/out2.flac
It probably needs regex (but I don't know how to use that).
I think a simple replace is enough: file:///$replace('T:\Temp\Sample Files\Audio Formats\out2.flac',\,/, ,'%20')
Put the text constant "file:///" in front and then the replace statement.
When you break it down like that, that the changes don't seem quite as complicated as I first thought (although I still would not have been able to figure out how to construct the correct 'replace' command).
The solution that you provided had me a bit confused at first because you included an actual path in your answer. But then I realised that it's just the output of %_path%, so I substituted the path with the placeholder and it works!