Open Command-I "get info" when trash is open or empty trash confirm


Joined
Dec 8, 2016
Messages
2
Reaction score
0
Hi guys I really miss the feature that apple use to have which tells you the size of the trash before you empty it. I know that you can get the size of the trash by hitting command-I "get info" when the trash is open. Is there any way to make "get info" automatically open when trash is open, and "get info" window close when the trash folder is close?

Even better automator script would be if trash "get info" would open every time you get the "Are you sure you want to permanently erase the times in the Trash?" confirm empty trash warning.

I like to know how much stuff is getting deleted because there has been times when I though I was deleting something small but I accidentally has something big and important in the trash without knowing.
 
Ad

Advertisements

Ad

Advertisements

Joined
Dec 8, 2016
Messages
2
Reaction score
0
I searched and searched and couldn't find anything similar on google. Thank you for the link. I will give it a shot and see if it works. Ill report back as either way.

Thanks

PS just tried most of the scripts at the link above. Long fancy scripts did not work for me, but this short one did. Add the script to ---> apple script ---> export it as an application ---> add the app icon to the dock

set amount to do shell script "printf 'scale=2;%s/1024
' `du -sk ~/.trash | awk '{print $1}'` | bc -l "
display dialog "There are " & amount & " MB in the trash. " & return & "Would you like to empty it?" with icon caution giving up after 5
if button returned of result = "OK" then
tell application "Finder"
empty trash
end tell
end if
 
Last edited:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top