I've set Hazel to clean up files sitting in the Trash for more than 3 days. Anyways I've noticed that it fails to complete this action when the file is an application previously installed from MacAppStore.
The relevant part of the log:
- Code: Select all
2012-06-06 20:46:33.243 hazelworker[8821] File <APPNAME>.app has been sitting in the trash for too long. Purging.
2012-06-06 20:46:33.243 hazelworker[8821] Removing <APPNAME>.app.
2012-06-06 20:46:33.250 hazelworker[8821] Could not remove <APPNAME>.app: Error Domain=NSCocoaErrorDomain Code=513 "“<APPNAME>.app” couldn’t be removed because you don’t have permission to access it." UserInfo=0x10253a5d0 {NSFilePath=/Users/alex/.Trash/<APPNAME>.app, NSUserStringVariant=(
Remove
), NSUnderlyingError=0x10253a4f0 "The operation couldn’t be completed. Permission denied"}
2012-06-06 20:46:33.250 hazelworker[8821] [Error] Could not remove file: File <APPNAME>.app could not be removed from the Trash.
I'm logged in with the user the app belonged to (and where the .Trash folder resides), so I'm not really sure why this is a permission issue. Any ideas?