OK, now I've got something that works, but it's not as pretty as I'd like. What I have is an Applescript that launches as a stay open app at login. I've put an on quit handler in it that will do certain things when it receives the quit event from the sytem at shutdown/reboot. Now my problem is...