Skip to content

Instantly share code, notes, and snippets.

@kmikael
Created August 8, 2014 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmikael/16c0e5f0e6754313e361 to your computer and use it in GitHub Desktop.
Save kmikael/16c0e5f0e6754313e361 to your computer and use it in GitHub Desktop.
Eject every disk whose ejectable is true
tell application "Finder"
eject (every disk whose ejectable is true)
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment