7

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?

ClintM
  • 238

2 Answers2

10

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

hdiutil attach -nobrowse /path/to/file.dmg
kipkoan
  • 381
1

By default the Finder will always auto open read only images. Try to pass -noautoopenro!

MacLemon
  • 502