Skip to main content

Module for editing the Favorites entries of the Finder sidebar.

Project description

Finder Sidebar Editor

PyPI PyPI - Downloads PyPI - License

GitHub issues GitHub pull requests

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

finder_sidebar_editor-1.2.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

finder_sidebar_editor-1.2.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file finder_sidebar_editor-1.2.0.tar.gz.

File metadata

  • Download URL: finder_sidebar_editor-1.2.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

File hashes

Hashes for finder_sidebar_editor-1.2.0.tar.gz
Algorithm Hash digest
SHA256 040a85fc51e52e49ed4b2bbe577a873af65a9b9f8ba66db104f338537e3cd5f5
MD5 bb2191b139e00757adf13dc5de63f37c
BLAKE2b-256 89e7b080d9f4d1b44300bf5ca6cebb414ca9f4fd7a22b0c4b2a87834db4777ab

See more details on using hashes here.

File details

Details for the file finder_sidebar_editor-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: finder_sidebar_editor-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

File hashes

Hashes for finder_sidebar_editor-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aeb9733b9b68e1c7b6222cda1d074d673e08860f7741f095db9c26987a5ae375
MD5 39e3bb324f0c367c9186c375e62657b8
BLAKE2b-256 7b1ecec04a44c4b8437c6e74bbd73e5f543d89e27f341f7986dfcb197b8a418f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page