Skip to content

Instantly share code, notes, and snippets.

@learningjs
Forked from cmod/eject_all_disks
Created December 28, 2015 05:50
Show Gist options
  • Save learningjs/358264e39c04a28f4186 to your computer and use it in GitHub Desktop.
Save learningjs/358264e39c04a28f4186 to your computer and use it in GitHub Desktop.
# =======================================
# 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