I'm trying to run a logout script to empty users' trash (and am planning to add to it later to try to whittle down the size of some of the Google caches). But I can't get the script to run. I have read the Apple article that says Login/Logout hooks are depreciated, but they should still run. I created a logoutscript.sh file in /Library/Scripts, and set permissions to allow all to execute. The script does empty the trash when I manually run it in Terminal, whether logged in as admin, a standard user, or guest. I used Code: sudo defaults write com.apple.loginwindow LoginHook to create the hook and looked at the Code: /var/root/Library/Preferences/com.apple.loginwindow.plist file to verify that the hook was created. All seems to be good, but it doesn't run. Help, please!