Deleting archives by extension

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

Moderator: Mr_Noodle

Deleting archives by extension 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
TCM
 
Posts: 5
Joined: Fri Jun 28, 2013 3:14 pm

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

Re: Deleting archives by extension 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.
TCM
 
Posts: 5
Joined: Fri Jun 28, 2013 3:14 pm

Re: Deleting archives by extension 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

¿?
TCM
 
Posts: 5
Joined: Fri Jun 28, 2013 3:14 pm

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

Re: Deleting archives by extension Tue Jul 02, 2013 4:46 pm • by TCM
Image

¿?

Don´t work.....

...I give up
TCM
 
Posts: 5
Joined: Fri Jun 28, 2013 3:14 pm

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

Re: Deleting archives by extension 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
TCM
 
Posts: 5
Joined: Fri Jun 28, 2013 3:14 pm


Return to Support