More > Media Center 15 (Development Ended)

Create Letter Folders Using the Rename Move Copy Tool?

<< < (3/6) > >>

glynor:
Jaguu, yes, I knew I could do that for a view. I wanted to know how to apply that type of system to my folders on disk.  That's what marko helped with...

Peter_T:
Hello!  I know this is a very old post, but this is exactly what I was hoping to do...  except it gives me a folder named "Expression Error (unknown)"... has the expression language or syntax changed since 2010?

Thanks!!

marko:
Very old indeed!

A lot changed, but not such that should affect this... except... MC used to be more forgiving of trailing errors, which is exactly what we have here.
I'll blame copy/paste, but there's a missing closing parenthesis at the end. This should work...

--- Code: ---if(isequal(mid([artist],0,4),the/ ,1),mid([artist],4,1),if(isequal(mid([artist],0,3),an/ ,1),mid([artist],3,1),if(isequal(mid([artist],0,2),a/ ,1),mid([artist],2,1),if(isequal(Mid([artist],0,1),1,6),0 - 9,Mid([artist],0,1)))))
--- End code ---

The expression function library has evolved greatly since this, with the addition of things like Regex and ifelse(), meaning a more elegant solution may be achievable, but as-is, this still works.

-marko.

Peter_T:
Amazing - thanks!!

marko:
You're welcome, and, massive props to yourself for utilisation of the much overlooked search feature ;)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version