title: How to open mounted disk on mac through java program?
body: <p>I am downloading a dmg file and then trying to open up the installer automatically through java code.</p>
  <p>I am able to download the file and then mount it using &quot;hdiutil attach file.dmg&quot;.</p>
  <blockquote>
  <p><strong>Download file using URL , Input stream and Output stream</strong></p>
  <p><strong>Mount dmg by:</strong>
  <em>/usr/bin/hdiutil attach file.dmg</em></p>
  </blockquote>
  <p>I am unable to open up this mounted disk so that the installer comes on foreground. Any thoughts on how this can be done?</p>
  <p>Thanks!</p>
  <p>Harsha P</p>