Hazel not retrieving from Trash

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

Moderator: Mr_Noodle

Hazel not retrieving from Trash Tue Sep 03, 2013 5:57 am • by Ticino
Hello,

On my previous hard disk, Hazel was set up to retrieve any iOS apps found in the trash and move them to an "Old iOS apps" folder in my documents folder (to keep automatically an old version of apps in case updates proved unsuitable). She did the job splendidly (and still does when I boot into the old disk).

On my new hard disk, I made exactly the same folder in Documents. I exported the rule from Hazel on the old disk and imported it to the new. However, Hazel will not retrieve .ipa files from the Trash and cannot even see them using "preview rules". I have set Finder to show all extensions.

Both the old and new hard drives are using the latest Mountain Lion.

What am I doing wrong?
Ticino
 
Posts: 1
Joined: Tue Sep 03, 2013 5:48 am

Re: Hazel not retrieving from Trash Thu Sep 05, 2013 12:09 pm • by Mr_Noodle
Maybe you have it pointing to the old trash folder? What path do you see when you hover over the folder in Hazel?
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Hazel not retrieving from Trash Sat Sep 07, 2013 6:24 am • by Ultimatemoe
Related: viewtopic.php?f=3&t=2373

How do you even point a rule on the Trash folder?!
Ultimatemoe
 
Posts: 13
Joined: Wed Jun 15, 2011 11:52 am

Re: Hazel not retrieving from Trash Sat Sep 07, 2013 10:34 pm • by nriley
You actually have multiple Trash folders — at least one for each user in their home folder, and one per user per disk otherwise.

For the Trash in your home folder, it's pretty simple. Click the + button in Hazel, then use ⇧⌘G in the open sheet to go to a folder, and type
Code: Select all
~/.Trash


For other disks, it's a bit more complex. First, figure out your user ID (
Code: Select all
id -u
in Terminal works for that). Then type
Code: Select all
open /Volumes/<disk name>/.Trashes/<user ID>
. For me, for example:

Code: Select all
% open /Volumes/MaryMedia/.Trashes/501


The Finder should open a folder titled "Trash". You can then drag the proxy icon from the title bar of this window into the folder list in Hazel. When you hover over the folder, you'll see it's in the right place:

Image
nriley
 
Posts: 19
Joined: Mon Sep 12, 2011 1:19 pm

Re: Hazel not retrieving from Trash Sun Sep 08, 2013 10:03 am • by Ultimatemoe
Awesome! This is the best description and it explains it perfectly for me :)
Thanks

/e
Just wanted to add this to your solution for the UID:
System Preferences -> Users & Groups

1. Unlock the sys prefs with the admin password via the lock icon in the lower left corner
2. Right click the user on the left you want the UID from
3. Click Advanced Options
4. There you have all the information of the user on this Mac
Ultimatemoe
 
Posts: 13
Joined: Wed Jun 15, 2011 11:52 am


Return to Support