tell application "Finder"
repeat with x in list folder temporary items folder
set y to (temporary items folder as text) & x delete file y
end repeat empty trash
Update: Rodney Mische Gothelf reports that he tried the script and that it did indeed empty the Trash, but it did not prevent the bug.
Update: Mark Nelson found that the script worked if he was still connected to the Internet at Shut … Read more