Skip to content

Instantly share code, notes, and snippets.

@kmikael
Created August 9, 2014 09:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmikael/92d0f994af72d7065d62 to your computer and use it in GitHub Desktop.
Save kmikael/92d0f994af72d7065d62 to your computer and use it in GitHub Desktop.
Eject every disk whose ejectable is true (shell script)
osascript -e 'tell application "Finder" to eject (every disk whose ejectable is true)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment