10.4: Remove extraneous Dock menu options for folders

May 03, '05 08:45:00AM

Contributed by: lrivers

Tiger only hintA new feature in Tiger is that folders in the dock have some additional Dock Menu items. Well, I don't need a menu item for Remove from Dock, etc., and it just gets in the way of the items I want to select in my special folder (where I have aliases to numerous frequently used apps, directories, and what not).

Based on thjs older hint about removing items from the Apple menu, I did some sleuthing and found where those Dock menu items are spawned:

/System/Library/CoreServices/Dock.app/Contents/Resources/English.lproj/DockMenus.plist
Located therein are a number of items. The one I'm interested in is entitled folder.

In a text editor, it looks something like this:


  <key>folder</key>
  <array>
  <dict>
    <key>command</key>
          <integer>2000</integer>
     <key>separator</key>
        <true/>
  </dict>
  <dict>
    <key>command</key>
          <integer>1004</integer>
     <key>name</key>
     <string>Remove from Dock</string>
  </dict>
  <dict>
    <key>command</key>
          <integer>1034</integer>
     <key>name</key>
     <string>Open at Login</string>
     </dict>
  <dict>
    <key>command</key>
          <integer>1005</integer>
     <key>name</key>
     <string>Show In Finder</string>
    </dict>
  <dict>
    <key>command</key>
          <integer>2000</integer>
     <key>separator</key>
        <true/>
  </dict>
  <dict>
    <key>command</key>
          <integer>1000</integer>
     <key>name</key>
     <string>Open</string>
      </dict>
 </array>
I made a backup of this file, and then bravely deleted all but the last item (command/1000/name/Open), saved, restarted the Finder and Dock, and voilĂ , no more extra entries.

Comments (4)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20050429151021222