I've created one script and use it all the time: eject all external drives. I put in specific drive names, so it's not super robust, but one of these days I'll figure out how to have it eject all external drives no matter what their names are. I got tired on my laptop of remembering to eject each drive, so the script helps a lot. I put it on the desktop and just double-click.
Steve