This article explains how to customize your Mac's menu bar by adding an Eject menu, which allows you to quickly eject a CD or DVD without having to move windows to drag the disc icon to the Trash. Instructions apply to OS X Leopard and later. Menu and command names may vary depending on your version of OS X or macOS.
How to Add an Eject Button to the Mac Menu Bar
Accessing the eject functionality from the menu bar provides benefits beyond providing a quick way to eject a disc. For example, if your computer has multiple optical discs, the Eject menu will display each disc so you can select the one you want to eject.
The Eject menu also comes in handy if you’re ejecting a stubborn CD or DVD, such as a disc in a format that macOS doesn’t recognize. Because the CD or DVD is never mounted (that is, it becomes inaccessible to the computer), there’s no icon to drag to the trash, and no pop-up menu you can use to eject the disc.
To add the Eject menu to the menu bar, perform the following steps: