Page 1 of 1

Subfolder moving issues (screenshots shown)

PostPosted: Sun May 03, 2015 3:47 pm
by DLJD
Hey everyone! Basically my aim here is to:

1: Monitor the Downloads folder for .zip and .rar files.
2: Create a directory of the archive name.
3: Move the archive into the new directory.
4: Extract the archive.
5: Avoid empty folders!

Up to step 4, everything works, and archives no longer extract a load of files directly into my Downloads folder, messing it all up.

However, those archives where files are all stored neatly into single folder in the archive, I end up with a redundant folder.

So, at this stage I have two issues (screenshots of everything are below):
1: Running through it a second time results in the "materials_2015" folder being moved to the directory above - outside of the downloads folder.
2: I haven't been able to successfully delete (or more accurately, move to trash) the empty "materials" directory that's left behind after running the rules once.

I'd be really grateful if anyone's able to help!


Here's my first unarchive rule:
Image

Here's an automatically extracted .zip file:
Image
The second "materials" folder is redundant here.

Here's my current 3 rule attempt:

Rule #1:
Image

Rule #2:
Image

Rule #3:
Image

So, while configuring my rules I keep Hazel paused, then manually run them. Here's what happens when I run the rules twice:
Image

Thanks everyone!

Re: Subfolder moving issues (screenshots shown)

PostPosted: Mon May 04, 2015 12:22 pm
by Mr_Noodle
Let's take a step back here. Note that the Unarchive action will create a folder for you, so there's no need to sort into subfolder. Does that by itself solve the issue or are you still having extra folders you want to delete?