Change The Dock Right Click Menu Names 5

Trick

Share
Change The Dock Right Click Menu Names

Hey

When ever your right click on a Dock item you will notice there is a list of items. Have you ever wondered how these items are created and if you can change them? Well you are in luck. This post will hopefully show you how you can change them to something a bit different. Its quite simple to do however you do need to err on the side of caution as you are altering system files. You only need TextEdit so it shouldn’t be too complicated.

1) To begin we need to find the file that the Dock is using to generate the names for the menu item. Open up Finder and navigate to /System/Library/CoreServices.

2) Right Click on item named Dock and select Show Package Contents and then navigate to /Contents/Resources/English.lproj if you are using a different language go to your respective language folder.

In this folder is a set of text files called strings. Strings essentially allow the program to name an item within the code and then assign a different language to that name. This ensures an item named “Quit” says “Quit” in English and “Salir” in Spanish (I hope Google Translate worked correctly). We are going to play around with this file so it can say something different.

3) Select DockMenus.strings and copy it to the desktop. While you are there may a second copy as a backup.

When you open this file you will notice something very specific. Every item is made up of two parts. One section in capitals, the other in normal text surrounded by quote marks. The section in capitals is used by the background code so don’t change it. The section in quote marks is what you normally see so feel free to change it.

4) As an example find the item named QUIT = “Quit”; and then change the text in quote marks to something like QUIT = “Quit Application”;

5) Save the file on your desktop.

6) Copy this file back to the English.lproj folder found previously. You will have to authenticate the file movement with an admin password.

7) You are done, the changes should be instantaeous.

Some ideas which are rather interesting to implement. Anything with %@ in the quote marks will show the application name. Therefore you can write something similar to QUIT = “Quit %@” . This will show something like “Quit Firefox” when you right click on the item in the Dock.

What ever change you do, make sure you don’t change the part in capitals, make sure the string you change is enclosed by quote make and finally make sure every line is finished with a semi-colon. If you make a mistake and break something, copy the backup file you created at the beginning back to the folder.

Please leave a comment below with any interesting changes you have made.


If you want to keep up with the latests post from Mac Tricks And Tips I recommend you subscribe to the RSS Feed.

Where To Next?

  • Subscribe To Mac Tricks And Tips

5 Responses to “Change The Dock Right Click Menu Names”

  1. 1

    Sweet tip! Now I can tell my non-responding applications to “DIE”, play “Peek-a-boo”, or “Stay!” in the dock. Cool? I think so!

    Comment By Ben Lind on January 13th, at 8:18 pm

  2. 2

    hah nice! how long did it take you to find the file “DockMenus”? :p it’s pretty tight packed into your hard drive eh? ;)

    Comment By Poison Oak on June 6th, at 5:20 pm

  3. 3

    can you explain more…… do you have to save it under the name file and then replace it?! since it opens in omnioutliner, this program doesn’t save it with .strings format extension… the point is im a bit confused of what to do after i copy the DockMenus file to the desktop and play with words….

    P.S there are no quote marks theres just capital words and small letter words…

    Comment By Confused on July 28th, at 3:18 am

  4. 4

    Open the copy on your desktop using Text Editor. It should show the quotation marks at that point. Once you have made changes, save the file on your desktop, and then drag that file into the “English.lproj” folder. You will have to authenticate the replacement.

    Comment By Josh on September 30th, at 3:19 pm

  5. 5

    Thanks for the great posts man!

    I was having trouble opening the file though. Is there a certain application I need to download?

    Comment By Benjemyn on November 15th, at 1:13 am