Im using a mac and would like to sort it album these characters to be replaced with other characters for both the file name and music file. What would I put in for this?
" replaced with space
< replaced with space
? replaced with _
: replaced with _
\ replaced with _
/ replaced with _
Sounds like you need to use the $rreplace() function. For more information have a look at https://picard.musicbrainz.org/docs/scripting/. I believe that you’ll need to run your text through it twice – once for each replacement character. It should look something like:
$rreplace($rreplace(your text to process,["<], ),[?:/\\\\],_)
If this isn’t what you were asking or need more explanation, please include more information about what you’re trying to do (including a copy of your current script).
Okay, it’s doing some weird stuff with the quotes. Try the following to see if that makes a difference. I did some testing and it seems to be working here.
Ok, I figured out what went wrong with the quotes, when copied and pasted the script the quotes pasted where “ instead of " this. They read as different characters, I don’t know why it did that, but oh well.
So, the script in the second post you sent works just fine!
You help me a lot, thank you so much your hard work!!