Launching a downloaded .dmg on OSX

Hi, I’ve programatically downloaded a .dmg file in OSX and want it to launch automatically.

I’ve tried launching through a ChildProcess, but no luck.

Anyone know how to do this?


It might do the same, but file.runAsProcess() would be another attempt, in the hope it does the same as open in the terminal.

But in any case, it is a disk image, so you might use hdiutil as last resort

Hi Daniel - have done a search for runAsProcess(), but nothing coming up…

The proper method name is File::startAsProcess, Daniel must have forgotten.

1 Like

lovely, thx guys.