Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Okay, now let's make it pretty...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Okay, now let's make it pretty...
Authored by: GORDYmac on Feb 28, '03 06:47:22PM

Thanks so much for the tip. I compiled everything and added an icon and a 5 second timeout:

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



[ Reply to This | # ]