I am more used to the Javascript style event handlers,
but is there a similar thing in applescript that listens to system events like logout or shutdown to execute code
or is there a way to have an applescript run on shutdown or logout?
I know about script timer but I would rather have something free.
All my script does is mute the volume for the next startup.