MacOS Finder颜色标记

mac-colors的Python项目详细描述


安装
$ [sudo] pip install mac-colors

要求
$ 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)

链接

python-readme-generator

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Eclipse内存分析器(MAT):不显示当前正在运行的进程   java Apache Velocity:转义字符不能作为关联数组键用于PHP   不截断零的java格式十进制输出   在另一个类文件中调用时返回空值的java getter   java集合获取连接   java解析json使用Gson登录系统应用程序强制关闭   java DelferredResult带有两个请求的ajax请求   java可降低功耗,同时应使用无线   java BoxLayout无法共享错误?   java如何使用计时器制作闹钟   java使用OAuth2保护RESTWeb服务:一般原则   java在一个jframe上显示多个图像和按钮