Sorting folders by name into numbered subfolders

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Hello everyone!
I'm trying to create a workflow to automatically sort folders based on their names into sub folders.

These folders are from work and the way we have the set up they're named as follows

AB-1234-ProjectName

The AB letters never change but the numbers keep going up, so we have AB-12-Project and we also have AB-5275-Project

What I want to be able to do is sort these folders into subfolders based on the AB number. For example have one folder that goes from 1 to 999 another that goes from 1000 to 2000 and so on. So basically would be using the increasing numbers but when I use the "Name matches" it's doing it to ALL folders, I've tried to do

AB-1[1][1][symbol]

AB-2[1][1][symbol]

But it's not working properly... any ideas/pointers would be greatly appreciated.

Thank you
Eistiroti
 
Posts: 2
Joined: Sun Oct 20, 2019 11:43 am

Can you post the full rule?
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

I haven't been able to make it work.

I'm using the "Name matches" rule and a combination of text and elements to mimmic the file naming structure but it's not working. Or at least, there's no way for me (or I haven't been successful) to separate the 1000's from the 2000's or 3000's numbers, they are all put into the same folder instead of separating them.

Not sure how to upload a picture - let me know if this is ok
https://imgur.com/a/z2xRnWm
Eistiroti
 
Posts: 2
Joined: Sun Oct 20, 2019 11:43 am

All I see is you matching the files and then just making an alias. There's nothing there about creating new names for the files or the folders.

You should probably be using the Sort into subfolder action. You probably also want to create a custom text attribute to match the number part of the name so you can use it in the sort pattern. I suggest looking up match patterns in the manual.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support