Apple launches Apple Store app in India

The Apple Store app provides customers with the most personalized way to shop for Apple’s innovative lineup of products and services. Learn more >

You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Show file extension of a screenshot by default

How can I make finder, to show file extension of a screenshot (.png) by default. And I mean, not of all files, only of the screenshot files. Is there any terminal command?

MacBook Pro 16″, macOS 15.1

Posted on Jan 18, 2025 5:03 AM

Reply
6 replies

Jan 18, 2025 5:47 AM in response to No idea.at

Not by default…


The Screenshot facility always assigns an extension to the capture but does not inform the Finder to make it visible. There is a Terminal command to make just these Screenshot extensions visible when seen in a Finder Window's Icon view (cmd+1) or List view (cmd+2):


cd ~/Desktop
xattr -d com.apple.FinderInfo Screenshot*.*


If you have Apple's Xcode or Command Line Tools for Xcode installed, then you have the SetFile utility. It can do the following:


Show file extension:

cd ~/Desktop
/usr/bin/SetFile -a e Screenshot*.*


Hide file extension:

cd ~/Desktop
/usr/bin/SetFile -a E Screenshot*.*


Or it can be done with a small amount of AppleScript. All of these approaches are mentioned in this StackExchange link.






Jan 18, 2025 5:46 AM in response to No idea.at

No idea.at wrote:

How can I make finder, to show file extension of a screenshot (.png) by default. And I mean, not of all files, only of the screenshot files. Is there any terminal command?




I can think of no compelling reason to not show all file extensions..(?)





You can submit your Apple Feedback here: Product Feedback - Apple




Show file extension of a screenshot by default

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.