Manually Removing Items From the OSX Finder Sidebar
The OSX Finder Sidebar is pretty cool. It lets you have a list of favorite folders that you can easily navigate to. From time to time one wants to update the list to reflect the current things being worked on. In a recent cleanup of my sidebar, I had more pain that I wanted to face, but was able to sort out where the preferences are maintained, and wanted to make it easy to work out in the future.
It's actually pretty straightforward…
~/Libary/Preferences is where user preferences are kept. So open up a terminal and type cd ~/Libary/Preferences to get to the preferences directory
Then type find . -name *sidebar* in directory, to search for sidebar preferences. You should see the plist: com.apple.sidebarlists.plist.
Finally type open com.apple.sidebarlists.plist to open up the property list editor, which makes it is easy to then navigate through the tree and remove items. Finder only loads the properties when it is first started, so you will need to reboot to see the changes take effect.
June 23rd, 2007 at 5:21 am
How come dragging the icons back out of the side bar didn’t work? Normally you just drag them out of the sidebar and they turn into a puff of smoke and disappear. Much easier than editing the plist.
Also, got those recent changes tests working and deleted a whole bunch more untested code.
June 23rd, 2007 at 10:07 am
Dragging out from the sidebar works great when you can actually select the icon :). When the file for the icon isn’t there, you cannot select it, so dragging away doesn’t work so well.
October 9th, 2007 at 2:54 am
GOD BLESS YOU!!! I had a whole bunch of quicktime icons in my sidebar that I couldn’t get rid of because the files they corresponded to no longer existed on my harddrive (they were driving me crazy!). This worked like a charm. Although, I was able to just do a “find . -name” from the initial Terminal prompt to open the preference file.
Thanks again!
November 28th, 2007 at 6:30 pm
Good post!
Now for my question.
Would it be possible to edit this plist via a login script so that when a network user logs in, their network folders appear in their sidebar?
Thanks!
November 28th, 2007 at 9:58 pm
Hey Anthony.
That’s a good question, to which I honestly have no idea about how to answer. I guess it depends on how early apple loads up finder, because the update to the plist would have to be done first. See: http://developer.apple.com/documentation/MacOSX/Conceptual/BPSystemStartup/Articles/CustomLogin.html for more info on how to run things at login, and give it a go. I’d love to hear how you go.
April 9th, 2008 at 12:34 pm
[…] Rob@Rojotek » Blog Archive » Manually Removing Items From the OSX Finder Sidebar Manually Removing Items From the OSX Finder Sidebar (tags: osx finder) […]
May 30th, 2008 at 10:54 am
Thanks Rob - worked perfectly for removing items which had ‘lost’ their target and which I couldn’t remove the normal way. Thanks again.
July 20th, 2008 at 12:11 pm
I followed directions, but when I typed open com.apple.sidebarlists.plist, textedit popped up with a bunch of gibberish and letters that didn’t make sense.
July 21st, 2008 at 11:16 pm
@Jen: You probably need to get plist editor, which is distributed with Xcode. You should be able to find Xcode tools on the CDs that came with your Mac, but you can also download it from developer.apple.com
August 22nd, 2008 at 8:29 am
[…] try the manual method from here: Manually Removing Items From the OSX Finder Sidebar - Rob@Rojotek But someone else may have another idea. __________________ Time Capsule 1 Tb (Ours) | […]
November 22nd, 2008 at 1:50 pm
Thanks, man !!