Turn Off File Extensions?

Joined
Jun 11, 2020
Messages
58
Reaction score
1
I made some changes to Finder to see file name extensions, but now that I no longer wish to view them, they don't seem to be turning off.
I notice on all my TextEdit files, they are now appended with a .rtf extension.
Is there a way to turn this off again?
 
Joined
Jan 25, 2017
Messages
1,303
Reaction score
109
Finder > Preferences > Advanced > 'Show all filename extensions'

Did you use the above method to turn on the extensions?
 
Joined
Jul 17, 2020
Messages
31
Reaction score
2
See this Apple Support page. It seems that once show extensions has been enabled, you have to go into an individual file's properties (right click and Get Info) to tick the box to Hide Extension.
 
Joined
Jan 25, 2017
Messages
1,303
Reaction score
109
I have come up with an applescript file that should do this (it works for me :)). Currently it will only work on one file at a time. I am working on a multiple file selection version.

Open Script editor and put in the following code:

Code:
tell application "Finder"


    set your_file to (choose file)


    set extension hidden of your_file to true  #change to false to put back extension


end tell
and save with a name of your choosing, as an application.
double click on the icon and you can navigate to the file you need to change. Select the file and click 'Choose'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top