Skip to content

Python module for programmatically editing the Favorites entries of the Finder sidebar

Notifications You must be signed in to change notification settings

robperc/FinderSidebarEditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FinderSidebarEditor

Python module for easily adding, removing, and moving favorites on the Finder sidebar in the context of the logged in user.

Example Usage:

#!/usr/bin/python

from FinderSidebarEditor import FinderSidebar                  # Import the module

sidebar = FinderSidebar()                                      # Create a Finder sidebar instance to act on.

sidebar.remove("All My Files")                                 # Remove 'All My Files' favorite from sidebar
sidebar.remove("iCloud")                                       # Remove 'iCloud' favorite from sidebar
sidebar.add("/Library")                                        # Add '/Library' favorite to sidebar
sidebar.add("/SomeShare", uri="smb://shares")                  # Mount 'smb://shares/SomeShare' to '/Volumes/SomeShare' and add as favorite to sidebar
sidebar.add("/SomeOtherShare", uri="afp://username:pw@server") # Mount pw protected 'afp://server/SomeOtherShare' to '/Volumes/SomeOtherShare' and add as favorite to sidebar
sidebar.move("Library", "Applications")                        # Move 'Library' favorite to slot just below 'Applications'

About

Python module for programmatically editing the Favorites entries of the Finder sidebar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages