Unrar a file inside a folder inside monitored folder

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

Moderator: Mr_Noodle

First of all any help is appreciated. This has been driving me nuts and I feel like I'm missing something so simple. Even using the preview option has me lost. If its all green it doesn't do what I want and if I try and add another marker to follow preview tells me I'm wrong and directs me to create a marker that already exists or something I don't know what to provide it.

Example:

Monitored Folder is "Completed"
Items in this folder are nested inside other folders that are created when the download is completed.

So "Completed" folder>"Test" folder> Rar file that needs to be unpacked. The .rar file could be standalone or a multipart (r.01,..)

The issue for me is that the folder won't always be named "Test" it will be random for every subsequent downloaded.

So what I want is to have Hazel monitor the folders that are created in the "Completed" folder. If any of the folders contained within contain a .rar file I want unarchiever to kick in and unpack the file.

Preferably not deleting the original rar files after unpacking.

I hope this makes sense. Again any help is appreciated.
nephilimreborn
 
Posts: 2
Joined: Sat Jul 13, 2019 11:36 pm

Check the help for "subfolders". You need to create a rule to have Hazel go into subfolders. The sample rule in the manual has Hazel going into all subfolders but instead, you should change the conditions to only match folders with rar files in them. It would look something like this:
Code: Select all
    If (all) are met
        Kind is Folder
        If (all) are met for (any of its sub-files)
            Extension is rar
    Do
        Run rules on folder contents

Also look up "nested conditions" in the help. What the above does is match a folder which contains a rar file and descends into it. You'll need to create a separate rule to match the rar file itself.
Mr_Noodle
Site Admin
 
Posts: 8358
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:Check the help for "subfolders". You need to create a rule to have Hazel go into subfolders. The sample rule in the manual has Hazel going into all subfolders but instead, you should change the conditions to only match folders with rar files in them. It would look something like this:
Code: Select all
    If (all) are met
        Kind is Folder
        If (all) are met for (any of its sub-files)
            Extension is rar
    Do
        Run rules on folder contents

Also look up "nested conditions" in the help. What the above does is match a folder which contains a rar file and descends into it. You'll need to create a separate rule to match the rar file itself.


Thanks for this help I'll give it go and update this thread accordingly.
nephilimreborn
 
Posts: 2
Joined: Sat Jul 13, 2019 11:36 pm


Return to Support