Page 1 of 1

Sort into subfolders: Do not create subfolders

PostPosted: Thu Nov 23, 2023 10:10 pm
by BobbyPlaysGames
I have a number of files that I want moved from Drive A to a specific folder on Drive B and then sorted into existing subfolders. It is important that if a subfolder does not exist then it does not create a new one. In an ideal world, it would only start to move files if a subfolder already existed, but I am ok with a 2 step process.

Failed miserably to post an image of current rules and so...

If all of the following conditions are met
If all of the following conditions are met for its enclosing folder

Do the following to the matched file or folder:
Name is plex media
Move to folder: hazel test
Sort into subfolder with pattern: name

Greatly appreciate any guidance.

Re: Sort into subfolders: Do not create subfolders

PostPosted: Fri Nov 24, 2023 12:29 pm
by Mr_Noodle
You can try adding the "anything" token to the pattern. That will force it to only use folders if they exist, since Hazel can't generate text for "anything".

Re: Sort into subfolders: Do not create subfolders

PostPosted: Fri Nov 24, 2023 8:09 pm
by BobbyPlaysGames
Mr_Noodle wrote:You can try adding the "anything" token to the pattern. That will force it to only use folders if they exist, since Hazel can't generate text for "anything".


Perfect! Thank you