POSTBUCKET - where random posts in unrelated topics go

Any questions? Need some help?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [SNIPPET] Sort into A-Z folders

Post by rednoah »

e.g.

Code: Select all

{
	if (az in 'A'..'L')
		return '/path/to/A-L'
	if (az in 'M'..'Z')
		return '/path/to/M-Z'
	return '/path/to/#'
}
/
{plex}
:idea: Please read the FAQ and How to Request Help.
alittler
Posts: 15
Joined: 14 Jan 2019, 05:04

Re: [SNIPPET] Sort into A-Z folders

Post by alittler »

rednoah wrote: 19 Mar 2023, 11:12 e.g.

Code: Select all

{
	if (az in 'A'..'L')
		return '/path/to/A-L'
	if (az in 'M'..'Z')
		return '/path/to/M-Z'
	return '/path/to/#'
}
/
{plex}
Thank you kindly. Either I misread the Terminal or something (or it was very, very late) but the command I had just tried didn't quite work, and this is a much simpler version of it.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

No worries. You had the right ideas. Just need some help with Groovy syntax for Ranges. I've added an example for this use case to the docs page.
:idea: Please read the FAQ and How to Request Help.
craze1994
Posts: 1
Joined: 23 Aug 2023, 05:42

Re: [FAQ] How do I evaluate FileBot?

Post by craze1994 »

Liked how easy it is to use filebot is something I would like to use to rename my media collection.
Post Reply