Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# =======================================
# OS X — ONE CLICK — EJECT ALL DISKS
# =======================================
# Open Script Editor on OS X
# Copy and paste this file in
# Pre-High Sierra: Save As > Application
# High Sierra: Export > File Format > 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
# ========================================
# OLD Version, stopped working in El Capitan:
# tell application "Finder" to eject (every disk whose ejectable is true and local volume is true and free space is not equal to 0)
# This works with El Cap, Sierra, High Sierra, etc:
tell application "Finder" to eject (every disk whose ejectable is true and local volume is true)
@olivierlacan

This comment has been minimized.

Copy link

olivierlacan commented Jan 28, 2015

This is great. Thank you.

@kevinSuttle

This comment has been minimized.

Copy link

kevinSuttle commented Dec 22, 2015

Any ideas?
Finder got an error: Can’t make 1 into type type class. (-1700)

@chrismoffett

This comment has been minimized.

Copy link

chrismoffett commented Dec 30, 2015

I get the same error. Thoughts?

Finder got an error: Can’t make 1 into type type class. (-1700)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.