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
251
29
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
 

Darth.Titan

macrumors 68030
Oct 31, 2007
2,906
753
Austin, TX
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

arw

macrumors 65816
Aug 31, 2010
1,227
974
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.
 

Heindijs

macrumors 6502
May 15, 2021
423
842
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.
 

Oneechan69

macrumors 6502
Original poster
Mar 29, 2022
251
29
US
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.
 

bogdanw

macrumors 603
Mar 10, 2009
6,100
3,013
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/"
 

Oneechan69

macrumors 6502
Original poster
Mar 29, 2022
251
29
US
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:

bogdanw

macrumors 603
Mar 10, 2009
6,100
3,013
Instead of double click on a dmg, you right click and click on the created QuickAction
 

Oneechan69

macrumors 6502
Original poster
Mar 29, 2022
251
29
US
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?
 

Oneechan69

macrumors 6502
Original poster
Mar 29, 2022
251
29
US
That works, but I would prefer if the DMG did open though. I'm still taking answers / solutions to this.
 

bogdanw

macrumors 603
Mar 10, 2009
6,100
3,013
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.