Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Oneechan69

macrumors 6502
Original poster
Mar 29, 2022
285
34
US
When I open a DMG file, it hides the toolbar, sometime it stays hidden when I'm on other tabs. How can I keep the toolbar visible when opening them?

This is what it looks like, and I just want the toolbar to be visible when I open DMG files.
Screen Shot 2022-10-04 at 4.04.04 AM.png

Screen Shot 2022-10-04 at 4.02.20 AM.png
 
I'm pretty sure that the creators of certain dmg files hide the toolbar (and sidebar) on purpose probably using a hidden .DS_STORE file. Like your example shows, this also allows them to make the icons larger and/or change the window background for aesthetic reasons.

There's no way I know of to override this, but Option-Command-T will bring the toolbar back.
 
  • Like
Reactions: appltech
Not a real solution, but you can close the automatically opened window and navigate to the mounted dmg from a different Finder window / tab. Then it keeps your default view (a.e. Details instead of Icons) and your normal toolbar layout.
 
I remember Xtrafinder opening dmg files up into a new tab, which means you still have your toolbar. But I don’t know if it still does.
 
I wish I could install and try xtrafinder but I have an 16'' MBP with the M1 Pro, and apparently xtrafinder doesn't work on it because it wasn't correctly compiled. It was compiled as arm64 instead of arm64e like it should've.
 
Simple QuickAction to mount DMG file(s), without opening the default window for the dmg
OpenDMG.jpg

Basic script
Code:
for f in "$@"
do
hdiutil attach $f
done
Faster and opens /Volumes/ in Finder
Code:
for f in "$@"
do
hdiutil attach $f -noverify
done
open "/Volumes/"
 
How exactly do I create it? In Automator I created a new quick action, copied the screenshot, tried both shell scripts, saved with CMD S before trying each one, then opened a DMG in Finder. That didn't work and the toolbar still got hidden each time. Here's what it looks like for me:

Screen Shot 2022-10-04 at 7.46.09 PM.png
 
Last edited:
Instead of double click on a dmg, you right click and click on the created QuickAction
 
Does the shell script open the volumes in list view by default or programmed to? Also do you know how I can make it so it runs when I double click DMG files?
 
That works, but I would prefer if the DMG did open though. I'm still taking answers / solutions to this.
 
You can create your own app in Automator and open /Volumes/
Code:
for f in "$@"
do
    hdiutil attach "$f" -noverify
done
open /Volumes/
OpenDMG.jpg

Opening the exact mounted volume will probably require more complex scripting.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.