/mac-tag.py

:apple: :open_file_folder: :hash: macOS Finder tags. github.com/jdberry/tag python implementation

Primary LanguagePythonThe UnlicenseUnlicense

Installation

$ [sudo] pip install mac-tag

Requirements

$ brew install tag

Examples

>>> mac_tag.update(["Red","Blue"],["path1","path2"])
>>> mac_tag.add(["Green"],["path1","path2"])
>>> mac_tag.get(["path1"])
{'path1': ['Blue', 'Red', 'Green']}
>>> mac_tag.remove(["Red"],["path1","path2"])
>>> mac_tag.remove(["*"],["path1","path2"])

Links

readme42.com