|
|
An AppleScript to unmount multiple volumes at once
I haven't examined this entire script, nor looked at the exact capabilities of the "disktool" terminal command, but the script seems a little over-kill. I've been using this simple script to eject scripts, and it uses all AppleScript (no system/terminal calls).
This ejects everything except your boot disk, and a disk called "Media", in my example. Feel free to build your own exception list by just modifying and adding on to the otherDisks definition.
the script seems a little over-kill
What's about ejecting CD- or DVD-Rom's. What's about a partition which resides on the same Harddisk like your Startup-Partition. What's about to not eject every disk but to select them.
Unmount selected disks
Regarding the applescript by hypert, the following change will eject only selected disks. In trying it out I noticed that it will only eject ejectable items (iPods, dmg, shares, removable disks), so no need to exclude the startup volume or anything else for that matter. i.e. if you mistakenly select files or folders, the Finder seems to ignore them and continue ejecting everything else. Not sure how it deals with partitions, I don't have any.
I have no idea if this covers the functionality of platon's original script (I suspect it may not), but present it as a solution that works for me.
Thanks, with iKey your applescript makes it easy to unmount external Hard Drives
Thanks for your script, it works like a charm. When I call it, saved as an application using iKey, I can unmount my external HD's with a keystroke. since I am always connecting and disconnecting my laptop, this comes in real handy. If I feature this tool over at Creativity Cafe, I'll let you know.
Aloha,
Peter
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|