Portable Device Eject Script

This is a compiled script that will try to close all windows running off the current (usually portable) device, it has a number of advanced features to try to close stubborn applications. And has the ability to run an external program after it has finished running, or pop up the operating systems “Safely Remove Hardware” dialog.