Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Removing File Extensions?

Removing File Extensions?
Thread Tools
Dedicated MacNNer
Join Date: Nov 2004
Status: Offline
Reply With Quote
Dec 31, 2005, 04:45 PM
 
When I transferred all my files from my PC, the naturally came with the file extensions in the file name. Is there any way to remove them in bulk?

In other words, is there any way to strip them from the file names of several files at once?

I already have the selection made to hide the extensions, but they still remain. Files that I've manually removed the extensions from continue to operate perfectly.

I should add that I'm talking about data files like doc, xls, mpg, etc. I'm not messing with application files.

Thanks.
     
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status: Offline
Reply With Quote
Dec 31, 2005, 04:56 PM
 
You don't want to remove extensions because in most cases the OS will not recognize the file. You did not remove the extensions from the files you mentioned; deleting the extension via the Finder's standard filename editing thing simply hides the extension, as you can verify by Getting Info on the items.

What you want to do is get info on items and enable the "hide extension" option in the Name area. I don't know how to automate that for many files, though.
     
USNA91  (op)
Dedicated MacNNer
Join Date: Nov 2004
Status: Offline
Reply With Quote
Dec 31, 2005, 04:56 PM
 
Aw, heck!

Select all the files, go to "Get Info", check "Hide Extensions".


So why didn't the other "Hide Extension" work?
     
Senior User
Join Date: Aug 2000
Location: Buenos Aires
Status: Offline
Reply With Quote
Jan 4, 2006, 11:08 AM
 
If you have your system set to Hide Extensions and you wipe them from the name of the file by selecting it in the Finder, you actually don't delete the extension, as a Get Info can reveal under the "Name and Extension" field.
If, on the contrary, you do a Get Info for the file and strip the extension from there, you will likely experience what our friend wataru advices.

Y no entienden nada... ¡y cómo se divierten!...
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Jan 4, 2006, 11:57 AM
 
Originally Posted by USNA91
Aw, heck!

Select all the files, go to "Get Info", check "Hide Extensions".


So why didn't the other "Hide Extension" work?
They don't the same thing. If the Preferences "Hide Extension" is on, the extensions are hidden for files with the "Hide Extension" file flag set. If that Preferences item is off, no extensions are hidden. Confusing? Yes - but there is a point to it. All files considered safe - essentially files that you create yourself, but also files installed by an app or "hidden" inside a disk image - get the "Hide Extension" flag by default. All other files don't get it, including files that you copy from the 'net. That way, a file inside say an email always gets the correct extension, avoiding the problem with double extensions common in Windows viruses.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:13 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2