Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.5: Eject stubborn disk images via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Eject stubborn disk images via AppleScript
Authored by: ctierney on May 21, '08 08:42:19AM
If you need to do this from a shell script, you could try this (where $VOLNAME is the name of your disk):
hdiutil detach `mount | sed -ne 's|^\(/dev/[^ ]*\).*/Volumes/'"$VOLNAME"'.*mounted by.*|\1|p'` -force

[ Reply to This | # ]