Thanks, Dave. My applescript, saved as an application, ran without any visible result. But the Finder menu command "Eject volume-name" is anyway greyed out.
tell application "Finder"
eject "volume-name"
end tell
I can eject/unmount the volume by dragging its disk icon to the trash, however.