[Windows] Splitting alphabet when sorting to different drives
Posted: 04 Dec 2017, 21:35
Ok, so I recently discovered you can sort files into different disk drives and hacked the example found here on the site:
What I want to do is have "0-9 A-The " go to D drive and "Thea-Z" go to E drive. This works for the most part except for:
1. This doesn't work correctly for movies that have a number immediately after the first letter, such as:
-T2 Trainspotting (2017) (This actually works, but only because of where I have T's located)
-X2 - X-Men United (2003)
2. Anyway to go further than the second letter when splitting the alphabet, it seems to stop at T[h-z].
Code: Select all
{n =~ /^(?i)[0-9a-s]/ ? 'D' : n =~ /^(?i)T[hea-z]/ ? 'E' : 'D'}:/Movies/{n} ({y}) ({source})/{n.colon('-')} ({y}){if (ext == 'srt') '.eng'}
1. This doesn't work correctly for movies that have a number immediately after the first letter, such as:
-T2 Trainspotting (2017) (This actually works, but only because of where I have T's located)
-X2 - X-Men United (2003)
2. Anyway to go further than the second letter when splitting the alphabet, it seems to stop at T[h-z].