"Show file extension" for multiple files

macstatic

macrumors 65816
Original poster
Oct 21, 2005
1,063
29
Norway
Is there a way to show previously hidden file extensions for many files at once?
(I know it's usually a matter of doing a Finder "Get info" and unchecking Hide extension, but that's only helpful for one or two files).
An app, a Terminal command or whatever will do fine. Thanks
 

RMo

macrumors 65816
Aug 7, 2007
1,212
207
Iowa, USA
Does it work if you select multiple files (drag a rectangular selection box with the mouse, starting in a "blank" area of the file list in Finder, or hold down Cmd and click them all) then right-click, hold down Opt, and choose "Get Summary Info"? I'm not sure if that actually lets you change the show/hide extension option for multiple files, but if it does it's certainly easier than doing them individually. (Obviously, this is easier if all the files are in the same folder.)

Personally, I turn on all file extensions. In Finder, you can do this with the Finder | Preferences menu item, then choose the "Advanced" tab and check "Show all filename extensions" (it will take some getting used to seeing .app after all of your application bundles, but I really prefer this because it ensures I never accidentally hide an extension by forgetting to type one when I save the file or whatnot). I'm not saying this is the best option for you, but if you never want to hide file extensions, it's something you may wish to consider. Others may have to chime in if neither of these two options works for you.
 

kaibob

macrumors regular
Jun 21, 2010
231
60
Prescott, Arizona
I tried RMo's suggestion and it didn't work at first. Selecting "Show Inspector" from the right-click menu did work.
 
Last edited:

macstatic

macrumors 65816
Original poster
Oct 21, 2005
1,063
29
Norway
Yes, you're right! Thanks.

1) Select the files you want to have the file extensions shown for
2) right-click to get the contextual menu
3) once you see the contextual menu, press ALT (which will change "Get info" to "Show inspector")
4) select "Show inspector"
5) Remove the tick mark next to "Hide extension"

Saved me a lot of time!
Turning on all extensions as RMo suggested might also be an option worth looking into.