Moving Parent And All Remaining Contents To Trash

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

Moderator: Mr_Noodle

I have noticed that I download many free fonts from various places. I also notice that I am working where Hazel should be. I download the .zip to Downloads, unzip the file, open up Font Book, import fonts, delete the parent folder with the readme and/or license. Hazel should be doing this for me.

So far I've managed to get Hazel to unzip, drill to subfolders, find font files, and move font files. The last part of that is for Hazel to move back up to the original parent folder, delete the parent folder and anything left in it.

I understand how to move into subfolders but now I need to move back up to the original parent and delete it.

Here are screen shots of what I have.

My three rules that handle this operation:

Image
http://note.io/1d3Ih3S
Rule 1.
Image
http://note.io/17xbCfn
Rule 2.
Image
http://note.io/1d3Ikgg
Rule 3.
Image
http://note.io/1d3Il3Q
Apple Script in Rule 3.
Image
http://note.io/1d3IlAT

How do I move back to the original parent to delete it and anything left in it?
joshsmith01
 
Posts: 6
Joined: Tue Aug 16, 2011 2:50 pm

The AppleScript, along with the move to trash action, should do that to the folder if it is the one that contained the otf or ttf files. If you want it to go higher, you'll have to modify the AppleScript to do that. Or you can create another rule to find folders at the top level that do not contain otf or ttf files.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support