-
-
Save learningjs/358264e39c04a28f4186 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ======================================= | |
# OS X — ONE CLICK — EJECT ALL DISKS | |
# ======================================= | |
# Open Script Editor on OS X | |
# Copy and paste this file in | |
# Save As > Application | |
# Name it "Eject All Disks" | |
# Drag created application to Dock | |
# Now you can eject all external disks with one click from Dock | |
# ??? | |
# $$$ & faster get-out-of-house-with-laptop | |
# ======================================== | |
tell application "Finder" to eject (every disk whose ejectable is true and local volume is true and free space is not equal to 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment