Page 1 of 1

How to Organise Folders by Groups of Letters

Posted: 17 Apr 2024, 16:19
by hyltonic
Hi All,

After learning the hard way, I've noticed it's taking quite some time to scroll through all the TV series I have with one of my media players, so I'd like to know how to set up folders for ABC, DEF ... WXYZ, you get the gist.

This only applies to the name of the series, so, the name part of what is, effectively:

Format: Select all

.../Television/{n.sortName('$2, $1')}/Season 01
What I need to know is how to create and maintain a level of folders between the Television directory, and the collection of TV series I watch.

I'm currently using a shareware copy of v4.7.9, not that I think it'll be relevant to this particular question of scripting.

Re: How to Organise Folders by Groups of Letters

Posted: 19 Apr 2024, 01:29
by rednoah
rednoah wrote: 29 Apr 2022, 20:04 e.g.

Format: Select all

{
	switch(az) {
		case 'A'..'E': return 'A-E'
		case 'F'..'J': return 'F-J'
		case 'K'..'O': return 'K-O'
		case 'P'..'T': return 'P-T'
		case 'U'..'Z': return 'U-Z'
		case '0-9': return '0-9'
		default: return '###'
	}
}

:idea: Note that {az} will return "0-9" by default (and not just a single digit) for movie / series / collection names that start with a digit.
:arrow: :arrow: See Sort into A-Z folders details.