sidebarFinagler: OS X utility to export/import Finder Sidebar favorites from the command line.
Finder Sidebar data is stored in a plist (~/Library/Preferences/com.apple.sidebarlists.plist
) - but the actual path to the favorite is encoded as an OS X Alias. This is a problem if you have a large list of favorites, and moved their targets to a new hard drive - Aliases stop resolving at system boundaries, so all of your favorites disappear.
This tool lets you export the favorites list, edit it, and import it with new destinations after the move.
sidebarFinagler > favorites.txt
- edit favorites.txt
- delete any entries you do not wish to change
- update paths and names of any entries you wish to update. DO NOT change the id
- add any new entries at end of file with id set to 0
cat favorites.txt | sidebarFinagler -w
Download the executable here; don't forget to turn on the execute bits!
It's a LSSharedFileListInsertItemURL wrapper, more or less.
sidebarFinagler was written by Anton Stroganov.
I could not have done this without references and inspiration from
- Sveinbjörn Þórðarson's source for osxutils
- Adam Strzelecki's gist at https://gist.github.com/nanoant/1244807
- Apple Docs
- Stack Overflow
(MIT License) — Copyright © 2013 Anton Stroganov