Create folders based on name and move files into

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

Moderator: Mr_Noodle

Hi, I'm a newbie :)
.... and did quite some search....., but not sure if this is possible with Hazel:

I have an import folder - for example Tmp_Import -, where I move all my already renamed media files from cameras (pictures and videos)

The goal would be:
Create, if not already existing, a subfolder in main folder: MEDIA,
named year with 4 digits (bases on first 4 characters in filename), like "2017"
Inside this folder create a subfolder (yyyy_mm_dd / again based on filename) for each file, if folder does not exist already (like "2017_01_17", "2017_01_20")

Last action:
Move all files from Tmp_Import to the "corresponding" subfolders in MEDIA

All files in Tmp_Import are named like:
2016_12_24_20.57.26_[Canon PowerShot G12].JPG
(yyy_mm_dd_.....) meaning the first 10 digits contain all the relevant infos for the "action".

Help very appreciated, this "feature" would help me with my buying decision :)
Thx.
Anderella
 
Posts: 1
Joined: Fri Jan 20, 2017 5:30 am

Look up "match patterns" in the help. You can create a custom date attribute to grab the date from the filename then use that attribute in a "Sort into subfolder" action to file it into the correct subfolder based on that date.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support