guarinogabriel / Mac-CLI

 macOS command line tool for developers – The ultimate tool to manage your Mac. It provides a huge set of command line commands that automatize the usage of your Mac.
MIT License
8.88k stars 334 forks source link

eject-all not working #119

Closed aspirewit closed 7 years ago

aspirewit commented 7 years ago
➜  ~ mac eject-all
53:63: execution error: The variable executable is not defined. (-2753)

OS: macOS Sierra Version 10.12.3 (16D32)

begroff commented 7 years ago

It looks like the osascript command is wrong. It currently is "osascript -e 'tell application 'Finder' to eject (every disk whose executable is true)' but it should be osascript -e 'tell application "Finder" to eject (every disk whose ejectable is true)'. I'm going to see if I can fix and submit pull request.