I am organizing my music by major genres, and for the most part this script works well:
return value.length > 0 ? value + sep : '';
}
function ifnotempty2(value1,value2,sep){
return value1.length > 0 ? value1 + sep :value2.length > 0 ? value2 + sep:'' ;
}
folderseparator + genre + folderseparator + ifnotempty2(albumartist,artist,folderseparator) + originalyear + ifnotempty(album,folderseparator)
+ (disctotal>1 ? discno + folderseperator : '')
But for some reason this randomly does not work. It has happened on a few files here and there, and when it does fail it takes on the attributes of the current folder that it is in. So if I am on /Desktop it would create a new subfolder called /Desktop in the new location.
I thought this may have been corruption of a few random older files i had, but I just ripped a CD to my desktop, applied my changes, went to do my
Save and Move action and that failed.
In this case it was a compilation CD, but I use the same script for regular renaming, and I even tried with ticking “is compilation” off. Same results.