Page 1 of 1

Trash Deletion: Keys on which field?

PostPosted: Wed Jan 04, 2017 7:16 pm
by TheOneTrueRobb
Hi Noodlers,

So I threw some files in the trash a few months ago. The "Date Added" field was not updated as per usual, for some reason. Those files are still in the trash today (1/4/17), still reporting 10/21 as the Date Added (though I actually tossed 'em a couple of weeks after that). I have the "Delete Files Sitting In The Trash" field set for 1 week. Is the Finder's "Date Added" parameter the one that Hazel's Delete From Trash code keys off of? I've found that to be the case for pretty much all files in the trash (and yes, I've actually watched other files disappear as the exact minute comes up exactly a week after trashing. And yes, I need a life). Except for this particular batch of files, Hazel is working normally. The files are audio plug-ins (.component), if that means anything.

Just curious. I will eventually mark it off as an anomaly and delete the files by hand, but figured I'd throw this out here and see what comes back.

Still using Hazel daily, still coming up with new uses all the time. This software would be a great time-saver if it wasn't so much fun to mess with. Thanks again, Noodle Guy!

Re: Trash Deletion: Keys on which field?

PostPosted: Thu Jan 05, 2017 12:23 pm
by Mr_Noodle
Go to the "Info" section and click "View Log". Search for one of the files in question and see if there are any errors. It might be the case that Hazel can't delete it (like file permissions).

Re: Trash Deletion: Keys on which field?

PostPosted: Thu Jan 05, 2017 7:17 pm
by TheOneTrueRobb
Mr_Noodle wrote:Go to the "Info" section and click "View Log". Search for one of the files in question and see if there are any errors. It might be the case that Hazel can't delete it (like file permissions).



Good tip, thanks. The files in question are marked "read and write" for the system. Still seeing...well, here's some entries from one of the files:

2017-01-05 18:08:58.147 hazelworker[893] [Error] Could not remove file: File Chorus.component could not be removed from the Trash.
path = "/Users/robbscott/.Trash/Chorus.component";
path = "/Users/robbscott/.Trash/Chorus.component/Contents";
path = "/Users/robbscott/.Trash/Chorus.component/Contents/Info.plist";
path = "/Users/robbscott/.Trash/Chorus.component/Contents/MacOS";
path = "/Users/robbscott/.Trash/Chorus.component/Contents/MacOS/Chorus";
path = "/Users/robbscott/.Trash/Chorus.component/Contents/PkgInfo";
path = "/Users/robbscott/.Trash/Chorus.component/Contents/Resources";
path = "/Users/robbscott/.Trash/Chorus.component/Contents/Resources/Chorus.rsrc";
path = "/Users/robbscott/.Trash/Chorus.component/Contents/Resources/English.lproj";
path = "/Users/robbscott/.Trash/Chorus.component/Contents/Resources/English.lproj/InfoPlist.strings";
2017-01-05 18:11:57.961 HazelHelper[456] DEBUG: Ignoring event in directory /Users/robbscott/.Trash/Chorus.component/Contents. Only need to check for changes 1 levels deep. Event is in directory 2 levels deep.
2017-01-05 18:11:57.961 HazelHelper[456] DEBUG: Ignoring event in directory /Users/robbscott/.Trash/Chorus.component/Contents/Info.plist. Only need to check for changes 1 levels deep. Event is in directory 3 levels deep.
2017-01-05 18:11:57.961 HazelHelper[456] DEBUG: Ignoring event in directory /Users/robbscott/.Trash/Chorus.component/Contents/MacOS. Only need to check for changes 1 levels deep. Event is in directory 3 levels deep.
2017-01-05 18:11:57.961 HazelHelper[456] DEBUG: Ignoring event in directory /Users/robbscott/.Trash/Chorus.component/Contents/MacOS/Chorus. Only need to check for changes 1 levels deep. Event is in directory 4 levels deep.
2017-01-05 18:11:57.961 HazelHelper[456] DEBUG: Ignoring event in directory /Users/robbscott/.Trash/Chorus.component/Contents/PkgInfo. Only need to check for changes 1 levels deep. Event is in directory 3 levels deep.
2017-01-05 18:11:57.961 HazelHelper[456] DEBUG: Ignoring event in directory /Users/robbscott/.Trash/Chorus.component/Contents/Resources. Only need to check for changes 1 levels deep. Event is in directory 3 levels deep.
2017-01-05 18:11:57.961 HazelHelper[456] DEBUG: Ignoring event in directory /Users/robbscott/.Trash/Chorus.component/Contents/Resources/Chorus.rsrc. Only need to check for changes 1 levels deep. Event is in directory 4 levels deep.
2017-01-05 18:11:57.961 HazelHelper[456] DEBUG: Ignoring event in directory /Users/robbscott/.Trash/Chorus.component/Contents/Resources/English.lproj. Only need to check for changes 1 levels deep. Event is in directory 4 levels deep.
2017-01-05 18:11:57.961 HazelHelper[456] DEBUG: Ignoring event in directory /Users/robbscott/.Trash/Chorus.component/Contents/Resources/English.lproj/InfoPlist.strings. Only need to check for changes 1 levels deep. Event is in directory 5 levels deep.
path = "<ComNoodlesoft_NoodlePathSet: 0x7fe1b0709c30>\n /Users/robbscott/.Trash/Chorus.component : 0\n";
2017-01-05 18:11:59.050 hazelworker[907] DEBUG: Application /Users/robbscott/.Trash/Chorus.component already checked for uninstall on 2016-12-03 20:23:06 +0000. Skipping uninstall check.
2017-01-05 18:11:59.051 hazelworker[907] File Chorus.component has been sitting in the trash for too long. Purging.
2017-01-05 18:11:59.051 hazelworker[907] Removing Chorus.component.
2017-01-05 18:11:59.056 hazelworker[907] Could not remove Chorus.component: Error Domain=NSCocoaErrorDomain Code=513 "“Chorus.component” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/robbscott/.Trash/Chorus.component, NSUserStringVariant=(
2017-01-05 18:11:59.059 hazelworker[907] [Error] Could not remove file: File Chorus.component could not be removed from the Trash.

Re: Trash Deletion: Keys on which field?

PostPosted: Fri Jan 06, 2017 12:05 pm
by Mr_Noodle
Note that that is a file package. It looks like a file but is actually a folder with files underneath it. You'd need to set the permissions on all the files underneath in this case.

Or you can just delete the file manually. Right-clicking on the file in the trash should provide the "Delete immediately" option in Finder.