Module for editing the Favorites entries of the Finder sidebar.
Project description
Finder Sidebar Editor
Python module for easily adding, removing, and moving favorites on the Finder sidebar in the context of the logged in user.
Based on the work by robperc in robperc/FinderSidebarEditor.
Installation
Install the PyPI package using pip:
pip install finder-sidebar-editor
Example usage
from finder_sidebar_editor 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'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for finder_sidebar_editor-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 040a85fc51e52e49ed4b2bbe577a873af65a9b9f8ba66db104f338537e3cd5f5 |
|
MD5 | bb2191b139e00757adf13dc5de63f37c |
|
BLAKE2b-256 | 89e7b080d9f4d1b44300bf5ca6cebb414ca9f4fd7a22b0c4b2a87834db4777ab |
Close
Hashes for finder_sidebar_editor-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aeb9733b9b68e1c7b6222cda1d074d673e08860f7741f095db9c26987a5ae375 |
|
MD5 | 39e3bb324f0c367c9186c375e62657b8 |
|
BLAKE2b-256 | 7b1ecec04a44c4b8437c6e74bbd73e5f543d89e27f341f7986dfcb197b8a418f |