Mac – How to prevent HDIUTIL from opening a finder window when mounting a dmg

dmg-imagemac

When I mount a DMG image with

hdiutil -noautoopen

and try to suppress the finder window with any and all command line arguments to HDIUTIL it still open's a Finder window. There must be a way to prevent this… am I wrong?

Best Answer

In Mountain Lion (10.8.3), none of the -noautoopen options worked. The -nobrowse option does, though:

hdiutil attach -nobrowse /path/to/file.dmg
Related Question