Created
October 7, 2018 04:34
-
-
Save davepeck/1f1ebe6316a36fb178a47134b07f32d1 to your computer and use it in GitHub Desktop.
Command line tool to eject all ejectable volumes
This file contains 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
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 file contains 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
#!/bin/sh | |
osascript eject_all.scpt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(Need to use
Script Editor
to create the (binary)scpt
file from the text above.)