Page 1 of 1

Copying files from multiple sources into a single folder

PostPosted: Sun Aug 31, 2014 2:55 pm
by tbrown
Hi,

I have a collection of images that are sorted by date into a set of date named folders like so:
/images/12-03-14/image_1.jpg
/images/12-03-14/image_2.jpg
/images/12-03-14/image_3.jpg

/images/20-03-14/image_4.jpg
/images/20-03-14/image_5.jpg
/images/20-03-14/image_6.jpg

/images/22-03-14/image_7.jpg
/images/22-03-14/image_8.jpg
/images/22-03-14/image_9.jpg

I want to make a copy of them to my screesaver folder like so:
/screensaver/image_1.jpg
/screensaver/image_2.jpg
/screensaver/image_3.jpg
/screensaver/image_4.jpg
/screensaver/image_5.jpg
/screensaver/image_6.jpg
/screensaver/image_7.jpg
/screensaver/image_8.jpg
/screensaver/image_9.jpg

I have a rule set onthe images folder as follows:
if all of the following contitions are met
if all the following contisiton are met of the any of its subfiles of subfolders
kind is image
date created is in the last 1 month
copy to folder "screensaver" (options "if the file exists do not copy the file")
NOTE the copy folder structure option is unchecked.

But try as I may i cannot get Hazel to copy to a single folder. Instead I get:

/screensaver/12-03-14/image_1.jpg
/screensaver/12-03-14/image_2.jpg
/screensaver/12-03-14/image_3.jpg
/screensaver/20-03-14/image_4.jpg
/screensaver/20-03-14/image_5.jpg
/screensaver/20-03-14/image_6.jpg
/screensaver/22-03-14/image_7.jpg
/screensaver/22-03-14/image_8.jpg
/screensaver/22-03-14/image_9.jpg

I think that these settings are not intuative. With copy folder structure UNCHECKED the files should be copied into a single folder.

Can anyone please tell me if this possible with Hazel. It seems like it should be trivial.

kindest regards

Tom

Re: Copying files from multiple sources into a single folder

PostPosted: Tue Sep 02, 2014 2:29 pm
by Mr_Noodle
Please do not post questions in the Tips forum. The sticky article at the top as well as the forum description tells you not to do this.

While on the topic of sticky articles, check the one at the top of this forum. That tells you how to go into subfolders. In your case, you are copying folders that contain images. To have the rule match the images themselves, see the aforementioned sticky articles.