This is literally, the simplest (and perhaps my favorite) script, I’ve ever written. Ready for it, cause here it is:
tell application “Finder” to eject (every disk whose ejectable is true)
Yup, that’s it. It just ejects any drives or images currently mounted on my Mac. Brilliant stuff that I take full credit for, even though, as always, it’s just an assembling of stuff I found thanks to Google. Enjoy!
Comments, Questions, Suggestions? I’m here to help and always looking for feedback!
Short URL for this post: http://tmblr.co/Z03dNxHvY50b