Change the default text for just about everything
Mar 13, '08 07:30:04AM
Contributed by: S
This is a hint which will allow you to change the default text for just about anything. This is actually quite easy -- all you need to do is edit various *.strings files. The thing is, these .strings files can be found just about everywhere. Here are some good places to look:
- /System » Library » CoreServices/
- Control-click on an application, choose Show Package Contents on the pop-ip menu, then navigate into Contents » Resources » [your language].lproj.
A few points:
- If the string you replace is too long, it will just be truncated and look a bit odd.
- Some strings don't appear to work anyway. I've no idea why.
- The strings files have comments in them. For example, search for OD_8 in /System » Library » CoreServices » Finder.app » Contents » Resources » English.lproj » Localizable.strings.
- Many applications will need to work on a copy, as they cannot authenticate a save.
- %@ is often an interesting thing to try.
- To insert a quotation mark, use \\", and to insert a backslash, use \\\.
Read on for an example to get you started...
Here's how to change the Force Quit menu item in the Dock's contextual menus (I did this in 10.5.2):
- Go to /System » Library » CoreServices » Dock.app » Contents » Resources » [your language].lproj.
- Open DockMenus.strings in your favorite pure text editor.
- Find FORCE_QUIT
- Look at the string next to it (the bit in quotation marks). It should say (if you chose English.lproj) Force Quit.
- Change it to Kill %@! Yaargh!, or whatever else takes your fancy. Leave the quotation marks in place!
- Save the file.
- If necessary, copy the file to its original location.
- Open the Terminal and type killall Dock.
No, holding down the Option key, click-and-hold on any open application in the Dock. The pop-up menu should now offer (instead of Force Quit) Kill [application name]! Yaargh!, or whatever else you typed.
[robg adds: A couple additional caveats on modifying .strings files. First, if you change a copy and move it back, the permissions will differ from what OS X expects; running Repair Permissions will fix this. Second, changes to these files can and will be overwritten with most any system update that affects that area of the OS or particular application. Third, if you make a mistake editing this file (if you remove a quotation mark, for instance), the results can be bad. Always have a good known backup before trying anything like this!]
Comments (13)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20080308075639201