tag:blogger.com,1999:blog-1512715256828672168.post-62618611269766946982008-07-21T00:00:00.002-05:002008-07-21T00:00:01.185-05:00Leopard Only: Remove the Spotlight Icon From the Menu BarThere are some things that people don't like about the Mac OS. One of those things is the inability of the user to remove the spotlight icon from the menu bar. I could understand this if you're working on a 12" screen and use something like QuickSilver instead. There's four ways to do the same thing. Each of the four are detailed below.<br /><br /><br /><br /><b><i>While I would love to say that there's no risk in doing any of these, there is a chance that something could go wrong when you use any one of these methods. I'm not responsible if something does go wrong. By reading the text of this post, you agree to these terms.<br /><br />On the other hand, if something does go wrong, please feel free to email me: <a href="mailto:mactipper@gmail.com">mactipper@gmail.com</a>.<br /><br />Finally, these methods are only tested to be compatible with Mac OSX Leopard.</i></b><br /><br /><br /><br /><b>Do it by hand.</b><br /><br />This is probably the worst way of doing it (besides pulling out the hard drive and <a href="http://xkcd.com/378/">using a magnetized needle</a>.)<br /><br />Go to <b>/System/Library/Coreservices/Spotlight.app</b>. Then, right click on Spotlight.app and select "Show Package Contents". Then, navigate to <b>./Contents/MacOS/</b> and rename the "spotlight" executable to something else.<br /><br />Unfortunately, you'll need to change the permissions of the spotlight executable to rename it. You'll then need to repair permissions. This is why this is the worst method.<br /><br />Once you've renamed the spotlight executable, open up activity monitor and quit the "Spotlight" process and the "SystemUIServer" process.<br /><br /><br /><br /><b>Using Onyx</b><br /><br />If you're a fan of the system modification tool <a href="http://www.scour.com/view/result/?URL=http://www.titanium.free.fr/pgs2/english/download.html">Onyx</a>, then you can use Onyx to remove the spotlight icon. Go to Paramatars>Spotlight and use the Hide/Show buttons to hide and show the spotlight icon from the menu bar.<br /><br />[<a href="http://tips4mac.blogspot.com/2008/07/hide-spotlight-icon.html">Via</a>]<br /><br /><br /><b>Terminal Commands</b><br /><br />You can do this really easily with two commands, one to hide the spotlight icon:<br /><br /><div style="background:black;color:green;"><code>sudo cp -f '/System/Library/CoreServices/Spotlight.app/Contents/MacOS/Spotlight' '/System/Library/CoreServices/Spotlight.app/Contents/MacOS/Spotlight 2'; sudo rm '/System/Library/CoreServices/Spotlight.app/Contents/MacOS/Spotlight'; killall Spotlight; killall SystemUIServer</code></div><br />And one to show it:<br /><div style="background:black;color:green;"><code>sudo cp -f '/System/Library/CoreServices/Spotlight.app/Contents/MacOS/Spotlight 2' '/System/Library/CoreServices/Spotlight.app/Contents/MacOS/Spotlight'; sudo rm '/System/Library/CoreServices/Spotlight.app/Contents/MacOS/Spotlight 2' ; killall SystemUIServer</code></div><br /><br /><br /><br /><b>Use an applescript just to show/hide it.</b><br /><br />Taking the two terminal commands from before, I wrote an applescript to show and hide the spotlight icon. You can download it by <a href="http://www.mediafire.com/?jjsse0i1bx3">clicking on this link</a>.<br /><br /><br />By using one of these four methods, it's quite easy to find the best way for you to get rid of the spotlight icon in your menu bar. As I mentioned earlier, these methods are only tested in Leopard and probably do not work in Tiger.MacTipperhttp://www.blogger.com/profile/07662807199937028796noreply@blogger.com