rdz83
June 19, 2021, 4:23pm
1
Hello,
I have this file naming script:
%discnumber%$if($ne(%albumartist%,),$num(%tracknumber%,2) ,)$if(%_multiartist%,%artist% - ,)%title%
It works good, but I don’t want spaces in the filenames, because I use Linux.
How can I make it so that the spaces in the filenames are replaced by underscores?
i copied this script from somewhere, and don’t know anything about scripting.
Thanks in advance.
hiccup
June 19, 2021, 4:48pm
2
I believe this should do it:
$replace(%discnumber%$if($ne(%albumartist%,),$num(%tracknumber%,2) ,)$if(%_multiartist%,%artist% - ,)%title%, ,_)
3 Likes
rdz83
June 19, 2021, 6:35pm
3
I have tried it, and it works, thanks!
1 Like
spUdux
June 20, 2021, 4:01am
4
Just curious, what is the issue there?
rdz83
June 20, 2021, 7:54am
5
When you use the command line you can’t use spaces in filenames, you have to use quotes or type a \ instead of a space.
spUdux
June 20, 2021, 8:07am
6
Ahh, sure, I was confused as that’s the same on all *nix platforms, and I think one can only use quotes with the long names on MS OSs.