How to prevent HDIUTIL from opening a finder window when mounting a dmg?
In Mountain Lion (10.8.3), none of the -noautoopen
options worked. The -nobrowse
option does, though:
hdiutil attach -nobrowse /path/to/file.dmg
By default the Finder will always auto open read only images. Try to pass -noautoopenro
!