I have a .dmg
file and I want to hide its extension. So I do the usual and ⌘I
, then check Hide extension
. killall Finder
just to be sure. I look and sure enough… the file extension is still there. So I use SetFile -a E myfile.dmg
hoping that will work. It doesn't. Any ideas? Here's a picture just in case.
macOS Finder – File Extension Not Hiding
dmgfile extensionsfindermacos
Related Question
- Turn off Smart Folders display “.savedSearch” extension in Finder sidebar
- MacOS – How to set read-only dmg background picture in Mountain Lion
- MacOS – renamed folder becomes a file with an extension
- MacOS – Why does hiding the Finder toolbar cause so many side effects
- macOS – Fix File Not Visible in Finder
- How to Unhide File Extension of an Application Created in Automator
- In Catalina, set default for saving files to show extension
Best Answer
OK, I found the issue. Apparently two options have to be set in order for any extension to disappear (except for
.app
). First you have to go into Finder'sPreferences > Advanced
. UntickShow all filename extensions
. Then you tickHide extension
in theGet Info
window for your file and the extension is hidden.