Here is my idea for using hazel
I have this directory setup
~/eps/tvshow1/season1/episode14/a.rar, a.r01, a.r02
~/eps/tvshow1/season2/episode15/x.rar, x.r01, x.r02
I want to do the following:
1) move my archives out of the the episode folder to its enclosing folder (ie. ~/eps/tvshow1/season1/episode14/a.rar to ~/eps/tvshow1/season1/a.rar)
2) unarchive in place
3) delete all other files
4) delete folders.
I believe I have 1 - 3 finished. here are my rules
1) Go into subfolders
If ALL of the following conditions are met for THE FILE OR FOLDER BEING MATCHED
KIND is FOLDER
then
Run rules on folder contents.
2) move archives
If ALL of the following conditions are met for THE FILE OR FOLDER BEING MATCHED
SUBFOLDER DEPTH is 3
KIND is archive
then
Move to folder ENCLOSING FOLDER
3) unarchive
If ALL of the following conditions are met for THE FILE OR FOLDER BEING MATCHED
SUBFOLDER DEPTH is 2
EXTENSION is rar
then
unarchive
4) delete all files left behind
If ALL of the following conditions are met for THE FILE OR FOLDER BEING MATCHED
SUBFOLDER DEPTH is GREATER THAN 2
then
MOVE to TRASH
5) delete empty folders (DOES NOT WORK

If ALL of the following conditions are met for THE FILE OR FOLDER BEING MATCHED
KIND is FOLDER
Size is 0
then
MOVE to TRASH
I have no idea why the last one doesn't work eventhough that is exactly the same rules others have used...
Any helpful tips?