How to Organise Folders by Groups of Letters

All about user-defined episode / movie / file name format expressions
Post Reply
hyltonic
Posts: 1
Joined: 17 Apr 2024, 15:55

How to Organise Folders by Groups of Letters

Post 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.
User avatar
rednoah
The Source
Posts: 23017
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to Organise Folders by Groups of Letters

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply