I want to eject all disks so I can grab my laptop and go. Surprisingly difficult (at least, I was surprised) but I found a way I wanted to share.
I know there's an AppleScript but as far as I can tell, it can eject a named disk but not eject all.
I found the excellent menu bar app, EjectBar ($2) and it works great but I can only activate it by clicking—it does not offer a hot key. I tried to create a KM macro but opening the EjectBar app does nothing and I do not know how to make it click the menu bar icon (which could be anywhere).
However, I also have Bartender and it allows a hotkey to trigger a menubar item, with modifier key if desired. That makes it easy because EjectBar ejects all if you trigger it with a right click.
Must be a better way, but this is what finally worked for me. This trick doesn't use KM but I'll bet I am not the only person looking here for a solution.
The easiest way I know of to do this is with Raycast, which has an "Eject All Disks" command that can be assigned to a global hotkey, making it extremely quick and easy. I don't know exactly what it does under the hood but its works very well (and this command exists on the free version).
I use it to quickly eject my regular 6 mounted volumes from my laptop and it works great
A friend of mine demonstrated me this app a few days ago … I haven’t looked into what it really can do but I just grabbed the DMG file from his Mac right after his demonstration…
I don’t know what happened that I was using my Macs without this tool … I mean … 10 Years …
Have fun
Uhmmm … by the way I now use all Applications from St Clair Software…. They are all worth buying …
Question about Jettison, if you are able to answer:
You know when you're trying to eject a disk (or unmount a volume) in Disk Utility and you get that message that it can't be unmounted, but you also don't get the Force Eject button? It just shows you the message and then you sit there, waiting for a few more seconds/minutes until it finally allows you to?
Do you know if Jettison forces any files/apps to stop using that disk?
Also, I don't always want to eject the whole disk, maybe just unmount a volume. Is this possible as well?
If I remember it correctly Jettison has a String for Force eject and when that setting is enabled it gets this done when ejecting can’t be done like you described… but I have no clue about that… maybe you’ll need to consider talking to the developer to get more info about Jettison behaves to do it’s work with that setting enabled - and share the information with us …
The last hit of this can not eject disk error I got 3 Years ago (knocking on wood) …
For this you will have to use the mount and unmount solutions that are allready given to you from this community.
Jettison is all about automation for ejecting and mounting ejected drives so that you are able to unplug the drives in just a few seconds without getting the typical notification from Finder when unplugging a mounted device.
The thing with this application is that you will never ever need to do unnecessary things like unplugging your drives and plugging them back in for a drive to be mounted by the system when it was ejected before unless you have to because you maybe need the device to be taken with you.
I hope that I’ve got you covered … again I am this app for a few days and don’t have even got into all the details what this Application has to offer …
If you’ve read the other reply I linked to you maybe get it that I was not able to post about it’s AppleScript commands without the information from a friend of mine who was the person that got me into start using Jettison.
I know I'm late to this party, but this works well for me. It skips "M3 Air SSD" which is my laptop's internal drive. I remapped my Fn key to Ctrl-Opt-Shift-Cmd and use the ` (the key to the left of the "1" key). Option plus that key works well without remapping.
Will add one more comment. EjectBar 1.0.3 now has an Eject All option (right click) and also an option to automatically eject all drives at scheduled time each day (e.g. 5 AM).