I’m tinkering with AppleScript on a Power Computing Mac clone running OS 9.1. This machine reguarly leaves folders in the Trash labeled “Saved Items from ”, usually after a crash, but not always.
So I make up this simple script which I put in the Shutdown Items folder so it’ll run when the Mac shuts down;
tell application "Finder"
activate
empty trash
end tell
The script does empty the trash no problem, however, it seems to interrupt the Mac’s shutdown. How do I fix the script so that the Mac shuts down as usual after running it?