Page 1 of 1

Sorting into SubFolders using partial filenames

PostPosted: Wed Oct 31, 2012 1:56 pm
by papo
I am currently using Hazel to send JPG's to a droplet that I use to rename the pics using the EXIF SHOOTING DATE. (Sample filename after renaming: 2012-01-31 at 02.30.25.jpg) AFAIK, Hazel can only rename files using tokens with what Spotlight indexes (without the need for scripting or what not).

Anyways, I then use a rule that moves the JPG's into folder by Year.
Filename starts with: 2012
Filename starts with: 2011
Filename starts with: 2009
.....etc.

At this point, I want to "Sort into subfolders" by using a custom token only using the first 7 characters of the filename to determine what folder (Month), the file needs to be sorted into.

I know I can have a rule for each Month as I do for the Year, but I would like to use Hazel's ability to create the folder on the fly. (I can then maybe implement this for the creation of the YEAR folder as well.)



Folder Structure:

>>2012
>>>> 01 January
>>>>>>>> 2012-01-31 at 02.30.25.jpg
>>>> 02 February
>>>> 12 December

>>2011
>>>> 01 January
>>>> 02 February
>>>> 12 December


I understand this can be done using custom tokens, but I do not know how to do this. Can someone please help me?

Re: Sorting into SubFolders using partial filenames

PostPosted: Wed Oct 31, 2012 2:42 pm
by papo
Please disregard. I have figured out my way through "match patterns". It is now working perfectly.

I just wish Hazel would be able to use EXIF data that has not been indexed by Spotlight. It would make it so much easier!

Re: Sorting into SubFolders using partial filenames

PostPosted: Fri Nov 02, 2012 11:00 am
by Mr_Noodle
It's something that needs to be done outside Hazel (like a proper Spotlight importer). You can try bugging Apple to have them fix theirs otherwise maybe someone else has stepped in and done it.