Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.3: Recreate the Go -> Documents Finder menu option Desktop
One Feature I liked was removed in panther, the Go -> Documents option in the Finder's Go menu. It's easy to recreate it, though. You need a text editor; I use Joe in the Terminal, but BBedit or pico will do as well. Open a terminal and type:
 % cd /System/Library/CoreServices/Finder.app/Contents/Resources/
 % cd English.lproj [or as appropriate for your language setting]
 % cd Menus.nib
With your favourite text editor, edit the file objects.xib -- sudo pico objects.xib, for example. Search for GoUt, and you will find somthing like:
  <object class="IBCarbonMenuItem" id="712">
  <string name="title">Utilities</string>
  <string name="keyEquivalent">U</string>
  <int name="keyEquivalentModifier">1179648</int>
  <ostype name="command">GoUt</ostype>
  </object>
Now, copy this sequence, and insert it just below. Then edit it to:
  <object class="IBCarbonMenuItem" id="712">
  <string name="title">Documents</string>
  <string name="keyEquivalent">D</string>
  <int name="keyEquivalentModifier">1179648</int>
  <ostype name="command">GoDo</ostype>
  </object>
That's it. Logout and login again and check your "Go" menu. Apple made it really easy to customise the "Go" menu. I don't know what happens if you insert GoRe instead of GoDo. Maybe you will be taken to the next availible Restaurant, which is at the End of the Universe ?

Do not forget to make a backup of objects.xib before modifying! I am not sure if it's OK to leave this line ...
  <object class="IBCarbonMenuItem" id="712">
... as it is. But on my PowerBook, it works. I am happy to have the Go -> Documents Menu availible again.

[robg adds: I would think that the duplicate IBCarbonMenuItem value would cause some sort of problems somewhere ... but this seemed to work in my testing. Anyone care to comment?]
    •    
  • Currently 2.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[12,198 views]  

10.3: Recreate the Go -> Documents Finder menu option | 12 comments | Create New Account
Click here to return to the '10.3: Recreate the Go -> Documents Finder menu option' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Recreate the Go -&gt; Documents Finder menu option
Authored by: bostmass on Nov 28, '03 01:20:15PM

If you use Interface Builder to do this, it will automatically assign an ID of 852. I think having the same ID is NOT a good idea when tinkering with menu items. This hint does work and quite well. For those looking to put back the Favorites menu item, it's GoFa.



[ Reply to This | # ]
10.3: Recreate the Go -&gt; Documents Finder menu option
Authored by: TvE on Nov 28, '03 02:14:35PM

And just what is wrong with just hitting Command-Shift-G to get the Go To... window - it's a lot faster that reaching for the mouse...



[ Reply to This | # ]
10.3: Recreate the Go -&gt; Documents Finder menu option
Authored by: bostmass on Nov 28, '03 02:20:04PM

That's a great tip as well, but you still have to type in the path to the folder you want to go to. With this tip, you simply hit command + shift + D and you're in your Documents folder. If you decide to add the Favorites menu, that would be command + shift + F. I've found the Go to folder helpful when navigating to buried folders on my harddrive, but to me it's just a little bit to much typing when you can use a shortcut key combo instead. ;)



[ Reply to This | # ]
10.3: Recreate the Go -&gt; Documents Finder menu option
Authored by: uurf on Nov 28, '03 03:15:29PM

I used interface builder to add Documents and Favorites as Items, but have 2 questions.

Any tips on how to get each Item to display their icon (as Computer and Home do in the Go Menu)?

I tried to add Favorites as a Submenu (as it was in 10.2) but wasn't successful in getting the children to populate. I used the Recent Folders menu item as a starting point, but was not successful. Any thoughts or tips?

Thanks



[ Reply to This | # ]
10.3: Recreate the Go -&gt; Documents Finder menu option
Authored by: xSmurf on Nov 29, '03 07:11:58PM

Not exactly in the right hint, but as we are editing the menu bar... I remember FruityMenu has the option of changing the application name in the menu to it's icon, but I refuse to pay a shareware fee for this single purpose, and also like to minimize the ammount of apps installed on the system. Although I really liked this feature as it saved some menubar space, anyone knows what needs to be edited?

---
PM G4 DP 800 / 256Mb / 80Gb+40Gb /SuperDrive / SCSI: AGFA SnapScan 1236s / Jaz 1Gb / Zip 100Mb
- The only APP Smurf ;P



[ Reply to This | # ]
10.3: Recreate the Go -&gt; Documents Finder menu option
Authored by: nobody on Nov 30, '03 08:59:29AM

I think you have to do that for every application, if you dont want to use Fruit Menu (but my knowlede of MacOS programming is limited).



[ Reply to This | # ]
10.3: Recreate the Go -&gt; Documents Finder menu option
Authored by: xSmurf on Nov 30, '03 12:49:50PM

I have great doubts FruitMenu modifies the thousands of apps on my HD ;)

---
PM G4 DP 800 / 256Mb / 80Gb+40Gb /SuperDrive / SCSI: AGFA SnapScan 1236s / Jaz 1Gb / Zip 100Mb
- The only APP Smurf ;P



[ Reply to This | # ]
10.3: Recreate the Go -&gt; Documents Finder menu option
Authored by: nobody on Dec 01, '03 09:56:36AM

This is true, but it probably patches a system call,
By modifying a Menu item you can only change the Menue of the Application ( here: the finder), and not globally for all Applications.



[ Reply to This | # ]
10.3: Recreate the Go -&gt; Documents Finder menu option
Authored by: Ockham on Dec 01, '03 10:25:10PM

One really big problem with this hint.

Unless you do a search for the text string:

<array count="15" name="items">

and replace the 15 with a 16, or a number equivalent to total number of new menu items, you will start losing the last most menu items under the Go menu... such as the Connect to Server and Go to Folder items.



[ Reply to This | # ]
10.3: Recreate the Go -&gt; Documents Finder menu option
Authored by: gagnon on Dec 12, '03 04:20:22PM

Is there somewhere a list of the commands one may use in the same fashion we use "GoUt", "GoDo" and "GoFa" here?

The following commands are the ones found here and in Menu Info of the Go Menu configuration of the MenuBar instance of the file /System/Library/Finder.app/Contents/Ressources/English.lproj/Menus.nib using Interface Builder :

Back -> go back in navigation history
Frwd -> go forward in navigation history
OpPf -> go up one folder in folder hierarchy
GoCm -> go to Computer folder
GoHm -> go to Home folder
GoDo -> go to Documents folder
GoFa -> go to Favorites folder
GoNW -> go to Networks folder
GoAp -> go to Applications folder
GoUt -> go to Utilities folder
RcFd -> go to Recent Folders folder
Goto -> invoke Go to Folder dialog
Cnnt -> invoke the Connect to Server dialog

There are much more other commands available navigating the other Menus configurations (File, Edit, etc.).

What kind of commands are those?

Where may one find documentation about it?

Where may one find out about other commands, commands not used here?



[ Reply to This | # ]
10.3: Recreate the Go -&gt; Documents Finder menu option
Authored by: p0stalmailman on Jan 22, '04 01:22:46AM
This is a cool hint, but does anyone know how to include an icon with the menu? I have a normal blue folder icon for Utilities and no icons at all for Documents and Favorites. Maybe it's due to the ID, but then someone said that each item should have its own ID.

---

-p0stalmailman
He gives you mail, and he goes •p0stal• when you get spam!

[ Reply to This | # ]

10.3: Recreate the Go -&gt; Documents Finder menu option
Authored by: Voltboy on Mar 17, '04 11:28:54AM

Hello, I saw this tip and thought my prayers had been answered because I wanted to recreate the Go->Favorites menu item from Jaguar as I (and all our office) like to put our AFP servers (File Server and other people's Drop Boxes - along with the passwords saved in the Keychain to faciltate instant opening) into the Favorites folder so that to connect to any of them all you need to do is select Go->Favorites->"AFP Server Name".

So I tried to edit the file talked about on this thread by adding the following;

<object class="IBCarbonMenuItem" id="852">
<string name="title">Favorites</string>
<object name="submenu" class="IBCarbonMenu" id="853">
<string name="title">Favorites</string>
<array count="1" name="items">
<object class="IBCarbonMenuItem" id="854">
<string name="title">Item</string>
</object>
</array>
</object>
<ostype name="command">GoFa</ostype>
</object>

Using the Go->Recent Folders section of the code as a guide - but unfortunately all that appears in the submenu is an item labelled "Item" and not the contents of the Favorites folder.

Does anyone know how to add the Favorites menu item to the Go menu AND have it with a sub-menu that shows all the items contained within?

I tried looking at how Jaguar implemented it but it is all in a RSRC file and not in a menu.nib file :(



[ Reply to This | # ]