MacOS Finder颜色标记
mac-colors的Python项目详细描述
安装
$ [sudo] pip install mac-colors
要求
$ brew install tag
函数
$ brew install tag
函数
function | ^{ |
---|---|
^{ | add tags |
^{ | return dictionary with path as key and tags as values |
^{ | replace tags |
^{ | remove tags |
可执行模块
usage | ^{ |
---|---|
^{ | set blue tag |
^{ | set gray tag |
^{ | set green tag |
^{ | set gray tag |
^{ | remove all color tags |
^{ | set orange tag |
^{ | set purple tag |
^{ | set red tag |
^{ | set yellow tag |
示例
>>>importmac_colors>>>path=["path/to/file"]>>>mac_colors.red(path)
获取
>>>mac_colors.get(path){'path/to/file':["red"]}
设置多种颜色
>>>mac_colors.replace(["blue","red"],path)
删除颜色
>>>mac_colors.none(path)