0

When you have a file selected in Finder and you press enter, Finder lets you rename the file, and the current filename excluding the extension is conveniently selected for you, so that if you directly start typing the filename but not the extension gets overwritten.

But if the file extension is unknown (in my case .irg), then the whole filename including the extension gets selected.

Is there a way I can make Finder only select up to the extension not including it? Like it does for known file extensions?

1 Answer 1

2

This TOTAL GUESS worked for me, macOS Sequoia: Open Get Info on one of your .irg files, and use the "Open With" widget to set it to an application you use with .irg files, and then click "Change All..." to make it universal. I tried this, changing a .pdf file to .pde. Selecting that file and pressing enter indeed selected the whole filename including the extension. I called Get Info on the file and took the steps above, setting the "Open With" application to Preview.app. I had to set the app selector to allow "All Applications" to enable selecting Preview. Now when I select a file with a .pde extension, only the filename root is selected. I expect this will work across the board, by "registering" the extension with the file system.

4
  • Do you have a good idea about what app to choose when I don't have an app that deals with those files?
    – user150109
    Commented Oct 18 at 18:30
  • It probably doesn't matter, since you're never actually going to open the file. Use something innocuous like TextEdit.
    – Barmar
    Commented Oct 18 at 20:43
  • I wondered about that, because I've never seen .irg files. My guess is the same as @Barmar's - try an app that wouldn't mess with the file. Does any app respond if you double-click one of those files? Commented Oct 19 at 19:05
  • Oh I just asked Claude, the guy with the "Will prompt for shrooms" sign. .irg files are binaries, so a text editor will show a bunch of seeming gibberish. It still might work for your original purpose to designate a text editor, but don't "Save"or take any other action. Since it looks like these are used by Visual Studio, use that, assuming that's where these are coming from. Commented Oct 19 at 19:12

You must log in to answer this question.