Sorting into SubFolders using partial filenames

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

Moderator: Mr_Noodle

Sorting into SubFolders using partial filenames 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?
papo
 
Posts: 15
Joined: Wed Mar 28, 2012 4:43 pm

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!
papo
 
Posts: 15
Joined: Wed Mar 28, 2012 4:43 pm

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.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support