Get the path of the .dmg from the mount point
Posted
by wbg
on Stack Overflow
See other posts from Stack Overflow
or by wbg
Published on 2009-12-22T23:26:31Z
Indexed on
2010/03/21
13:51 UTC
Read the original article
Hit count: 374
I'm looking for a way to get the .dmg path of a mounted disk image with just its mount point.
I want to write a "simple" Finder service that ejects the disk image and trashes the accompanying .dmg. The ejecting is trivial, but I'm at a loss as to how to figure out the path of the .dmg, given just the mount point.
diskutil doesn't seem to know or isn't saying.
It's for a script, so AppleScript- or shell-based suggestions are preferred.
© Stack Overflow or respective owner