Page 1 of 1

Deleting archives by extension

PostPosted: Fri Jun 28, 2013 3:23 pm
by TCM
Hi, everybody. I´m from Spain .. sorry for my (bad) english.

I have several days trying to delete into a subfolder, archives by extensión ... impossible.

Folder: DOWNLOADS
Subfolder: NEW DOWNLOADS
Subfolder: PROYECT
proyect.dwg
proyect.pdf
proyect.nfo
proyect2.nfo

I want make a recipe to delete ONLY archives with .nfo extension

¿It´s possible?

THX

Re: Deleting archives by extension

PostPosted: Fri Jun 28, 2013 4:13 pm
by Mr_Noodle
If you just want to delete the .nfo files, write a rule to match those and throw them away. That part should be pretty straightforward. Problem is, it only does so at the top level. What you need to do is read the article at the top of this forum about subfolders. There, you will find a rule which will tell Hazel to navigate into subfolders. Together with the rule to handle nfo files, that should do what you want.

Re: Deleting archives by extension

PostPosted: Sat Jun 29, 2013 3:02 am
by TCM
Doesn´t works.

The problem will be the variable subfolders into the subfolder NEW DOWNLOADS, their names changes every day; there are new downloads, with different names.

Re: Deleting archives by extension

PostPosted: Sat Jun 29, 2013 4:07 am
by TCM
Example with a folder:

1. The Rules:

Image


2. The Folder with nfo file

Image

3. Run Rules

4. The Results

Image

¿?

Re: Deleting archives by extension

PostPosted: Mon Jul 01, 2013 10:46 am
by Mr_Noodle
Read the article again. The middle part indicates what you should avoid doing (your rule resembles the pic with the big red x through it). You need to resist the urge to put everything into one rule.

Re: Deleting archives by extension

PostPosted: Tue Jul 02, 2013 4:46 pm
by TCM
Image

¿?

Don´t work.....

...I give up

Re: Deleting archives by extension

PostPosted: Wed Jul 03, 2013 12:49 pm
by Mr_Noodle
Do not put everything in one rule. Go back to the article. That rule you download. DO NOT TOUCH IT. It is separate from your other rule. Go back and try it that way and it should work.

Re: Deleting archives by extension

PostPosted: Sat Jul 06, 2013 7:50 am
by TCM
Mr_Noodle wrote:Do not put everything in one rule. Go back to the article. That rule you download. DO NOT TOUCH IT. It is separate from your other rule. Go back and try it that way and it should work.


OK, OK, OK.

Work IT.

THX