EjectAn Eject command is a request to eject a disk.
SYNTAXeject [ referenceToDisk ]
- A reference to the disk to be ejected or a list of references.
Class: Reference or list of references
Default value: List of references to all mounted disks whose Ejectable property is
RESULTA reference to the ejected disk or a list of references.
EXAMPLEThis script ejects the disk named Untitled:
tell application "Finder" to eject disk "Untitled"
NOTESIf you use the Eject command to eject a disk, the disk's dimmed icon remains on the desktop after the disk ejects. To eject a disk without retaining its dimmed icon, use the Put Away command, which is defined on page 129.