Amazon.com Widgets
OS X Help Logo
Insanely simple tutorials for the first time Macintosh user
✭ Stay up to date... Don't forget to subscribe to our email newsletter in the Email Updates form. ✭
OS X 10.6 Snow Leopard ✭ The best $24.99 you will spend on your Mac!

Renaming files and folders

Written by: hexley on Wednesday March 05th 2008, 12:01 AM

Filed under: OS X 10.5

Finder Header LogoHow you name your files and folders on your computer is important. It is one of the best ways to locate them later. Often times, I will save a file, and give it the wrong name, spell the name wrong, or just want to change it later.

I would guess the reason many people have issues with how to change a file or folder name is that there is no menu item or command in OS X to start the process. I have a feeling many people stumble on the methods by accident; it certainly is not immediately clear.

There are two ways to rename a file or folder in OS X. Each of these two methods apply equally well to files, or folders.

Rename with the return key
The method most people seem to have the least trouble with is using the return key. Click on a file or folder once, this will select the item. Press your Return key and the file name or folder name will be highlighted. You can now start typing as usual, when done, press the return key once more, and the changes are locked in.

Rename with a delayed click
The second method is with the mouse exclusively. Click on a file or folder once. Wait a second, and click on the file or folder once more. If you time this just right, the file or folder will become selected, and you can type your new name.

Be careful not to click too fast, or this will actually open the file in its default application. You will not harm anything by doing so, but it can be frustrating. Once you get the timing down, it will become second nature.

A small word of caution
In closing, a word of caution. If for example, you are writing a letter in Word, and have the file saved as ‘my letter.doc’. You should not rename the file while you are working on the file. The problem with this is the next time you save the file, it may or may not save to the new name you have given the file.

In a perfect world, this would not matter, as applications would follow the file even after you have renamed it. Not all applications follow these rules. I have never seen this cause data loss, but it will cause you to have a duplicate file. While a duplicate file is not a huge deal, it can be a source of confusion to some.

Want to be reminded when there are new posts?
Get post updates in your email or subscribe via RSS.
27 Comments so farLeave a comment

A word of caution about file extensions (.doc, .pdf, .html, .txt, etc). DO NOT CHANGE THEM! Unless, of course, you know what you’re doing. Changing an extension while changing a file name can cause big problems with files and apps. So be careful when renaming files.

Comment by Michael 03.05.08 @ 6:36 AM

@Michael, good point. I plan on having a short post on what file extensions are, and when it would be safe to change them, as well as why. I was hoping in most cases, people have the default pref, which is that they can not see the .ext, so they do not have a simple way to even change it.

Thanks for the comment.

Comment by Scott Haneda 03.05.08 @ 8:33 PM

Check out MassReplaceIt too. It lets you batch rename file names, or extensions and even lets you batch replace text within files themselves. You can also save the search and replace commands, so if you repeatedly rename files this app is perfect.

http://www.hexmonkeysoftware.com/

Comment by Rob 03.06.08 @ 7:25 AM

You can also do batch renaming with the example scripts included with AppleScript, or use those as a base to make your own customized batch renaming scripts. Even if you’re not a programmer at heart, AppleScript is fairly easy to figure out with a few minutes of logical thinking applied.

Comment by Morgan 03.06.08 @ 12:14 PM

You can also change the name by Get Info – *I

Comment by Jesse 03.07.08 @ 10:25 AM

I work full time as a Mac guy these days and love it. But, my biggest gripe is the finder. The interface and UI needs to be addressed to make it easier to use.

Comment by Paul Mooney 03.10.08 @ 7:07 AM

@Paul, if you have specific issues, please do point them out. Perhaps we can cover a post that suggests methods and workaround to others. As of 10.5, I can no longer complain about the slowness of it. I certainly have issues with some aspects, but it is improving.

Comment by Scott Haneda 03.10.08 @ 9:18 AM

Happy to …
I will put together a list here but in fairness, the windows explorer interface is better in this case – it is just easier for people to find files in Explorer then in Finder. Cut, copy paste etc and knowing which folder files are going into is much better in the windows model.
Strange that really, considering the mac product is so superior.

Comment by Paul Mooney 03.11.08 @ 4:01 AM

@Paul, there are some methods I want to cover in regards to how to change Finder prefs to alleviate what you are talking about. Defaults make it challenging to get two windows open at the same time. This makes it hard to visualize a move of a file from one location to another.

Once you wrap your head around SpotLight, and I would say to not even bother in 10.4, but in 10.5 Leopard, it is quite a useful search tool.

More to come, thanks for the comments.

Comment by Scott Haneda 03.11.08 @ 8:51 AM

I’m late to the party, but glad to find you and all your precious advice. I have a question related to this post about file names. Is there a way to rename more than one file at once? Like, if I have a dozen files called “accounting1″ to “accounting12″ and I now want to call them “books 2007-1″ to “books 2007-12″? There must be another way than having to rename them one by one but I can’t seem to find it.

Comment by Pat in Dakar 03.16.08 @ 3:36 PM

@pat, there are a few ways to batch rename files in the Finder, none of them are really built into OS X, the nerdy way would be in the terminal, but we will not put that on you :-)

If you want a standalone app, there is Name Mangler which as far as I can tell is free still.

If you want a very simple method, you can use an Automator Action, which is more something built into OS X. I have used this one for ages, and it works well for me.

Comment by Scott Haneda 03.17.08 @ 4:52 PM

thanks much, bro

Comment by Timof 03.24.08 @ 12:52 AM

There IS a way to batch rename and it’s comes with the system: Automator.

Comment by Mark 06.01.08 @ 1:13 PM

@Mark, uhm, yeah, I believe that is more or less what I said:

If you want a very simple method, you can use an Automator Action, which is more something built into OS X. I have used this one for ages, and it works well for me.

Comment by Scott Haneda 06.03.08 @ 4:51 AM

I apologize for not knowing if the ‘return key’ is the ‘enter key’, the backspace key or something else. I’ve tried both of your suggested methods of renaming folders and have had no success. The folder’s properties read only box can be manually unchecked, but the computer immediately checks it. Suggestions from other websites have not been successful either. Please help. Bud

Comment by R. J. Chutter 09.12.08 @ 2:13 PM

Hi, all. Nice site…I really like your site ! Good job man.

Comment by Spider 01.18.09 @ 1:55 AM

Is there a way to protect a folder I made with a password so that only I can get into it?

Comment by Colleen 01.03.10 @ 8:09 AM

@Colleen There are a few third party applications that can do this. However, you probably do not want to apply a password to a folder.

Most of those methods are easily breakable, and do not offer much security. Apple has a built in method to create a secure disk image, which is more or less a virtual disk, but you can consider it a folder for all intents and purposes.

In your Utilities folder, open “Disk Utility” and click on the “New Image” button. This will pop open a panel that looks like this.

You should be able to see the changes that I have made. Choosing 128 bit over 256 bit should be more than sufficient for most home users needs. Both are secure, 256 bits come at the expense of some performance. 128 bit, with a strong password, will take years and years for someone to crack.

The only troubling part of this is that you have to chose the size of the disk image you are about to make. 10MB is as small as you are allowed. You will end up with a 10MB disk image that you can store anything you want inside. However, if you ever need to store more than 10MB, you will be out of luck.

This size problem is easy enough to solve, just create a new larger disk image, and copy your old files to it.

An alternative is to create the format as a read/write sparse image. This will allow you to make it a minimum of 10MB, but also allow the disk image to dynamically grow to whatever size you desire.

When you click “Create”, you will be asked to enter in a password. Enter it in twice, to make sure you have it correct. You are now left with a single file, in this case, called “secret-folder.dmg”.

Opening that will open a virtual disk, that you can treat as a folder. You will be asked for a password to do so. I suggest not saving it in your keychain.

When you are done, and want to lock up your files, just drag the disk image icon to the trash, but keep the .dmg file, that is where your secret files are.

You are free to move and store this dmg file anywhere you like. It is a single secure file that can contain files and folders, just like any other files and folder. You can safely ftp, email, and transfer it to other Mac’s, and it will be openable on those machines with the correct password.

I am planning on keeping a secure disk image one on a USB thumb drive, specifically the OCZ Rally 2 series. I feel confident, that as long as my password is not in a dictionary, and is not guessable by anyone, that my most guarded secrets would be safe.

You may want to read our Understanding file downloads and their remnants, in order to get an understanding of how dmg files work before you embark on this.

This is a question we get frequently, if I have some time, I will try to clean up this reply, and turn it into a more detailed post for others.

Hope that helps.

Comment by Scott Haneda 01.03.10 @ 5:40 PM

Wow! Thank you so much for taking the time to write that all out! I will take your advice and read up on the file downloads/remnants first to make sure I have a better idea of what I’m doing but your directions are great! One last question…what is my “keychain?”

Comment by Colleen 01.04.10 @ 9:12 PM

@Colleen, your keychain is where OS X stores your passwords. Any time the system asks you if you want to remember a password, that is where it is stored. If you are trying to secure files, it does not make much sense to store the password in the keychain, as it would automatically open for anyone who was able to gain access to your computer.

Comment by Scott Haneda 01.04.10 @ 9:20 PM

I wanted to mention that if the delay for renaming a file is too long you can change it in preferences. Apple has tied it to the double-click speed in the mouse preferences…how ingenious. If your delay is long then double-clicking to rename has to be long; if your delay is set to it’s shortest then you have a very short double-click delay.

Comment by John 08.06.10 @ 5:06 AM

iMovie puts Events into “folders” labelled with years. Is there any way to rename one of these, since mine is putting videos shot in 2006 into a folder labelled 2002? I asked a guy at Apple telephone support, and he didn’t know the right name for these “folders” (identified by boxy yellow icons) or how to rename them.

Comment by Bob 10.03.10 @ 1:07 PM

Thanks! You’re awesome! The return works. Been driving me crazy.

Comment by Kurt 02.09.11 @ 1:15 PM

Why is the file extension selected on some files when you try to change the file name and how to make it go away? Cheers

Comment by Mattias 03.22.11 @ 6:56 AM

Hi, Is there a way of renaming a file you have opened and are working in? My question relates to photo files that all have numbers. If I’m in the file and can see the photo, I know what to call it. But I don’t want to have to exit the file just to give it a name. Thanks.

Comment by JIm 04.18.11 @ 2:15 PM

@Jim, there are a few ways to deal with this, none of them ideal, as you are already in the file.

First is “Save As” which will allow you to save the file you are in with a new name. However, you then will need to go back into the Finder, locate the old file and then delete it.

OS X does have the ability to show rather large icons. One thing you could do would be to sit the view options to icon, and change the icon size to as large as possible, around 512 x 512. You should be able to see the file within the Finder at a size that will allow you to rename it based on the content of the file.

Neither method is ideal. Perhaps the best thing to do would be to use a photo management application such as iPhoto, or if you need something more professional, look to the paid organizers and editors. Photo apps such as these will allow you to rename the file from within the application, or, in my opinion, a better aspect is that they don’t rely on the filename at all. Simply import, tag, name etc, never even worry about where the files are on your computer, let alone the name of the actual file.

Comment by Scott Haneda 04.18.11 @ 11:12 PM

Hi Scott, Thanks for the tips. I’ve been doing “Save As,” but it’s cumbersome. I wonder why OSX doesn’t provide this simple convenience. I also wonder why Photoshop won’t allow us to save in JPEG. Again, you have to do a “Save As” to get what you want. Re the photo apps, I have all the major ones plus others, but am too old and too lazy to get involved in elaborate organization and file naming.

Comment by JIm 04.22.11 @ 10:52 AM



Leave a comment:
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed. Name (required)
E-mail (required), never ever shared
URI
Your Comment:

The New MacBook
The New MacBook Air
New iPod shuffle in five brilliant colors!

Email Updates

RSS Feed

Search:

Categories

Applications (17)
Finder (17)
Hardware (4)
iTunes (1)
Little Smokies (7)
Misc (11)
OS X 10.4 (9)
OS X 10.5 (31)
OS X 10.6 (1)
Safari (11)

Archives

Contact

Friends