开发者

Access Mac OS X File Label Status (Red/Orange/Yellow, etc) with Ruby

开发者 https://www.devze.com 2023-02-13 22:11 出处:网络
Mac OS X Finder allows users to \"Label\" files and directories as Red, Orange, Ye开发者_运维技巧llow, etc.

Mac OS X Finder allows users to "Label" files and directories as Red, Orange, Ye开发者_运维技巧llow, etc.

How can I access this status from a Ruby script?

I need to find all files labeled "Red" in a named directory structure.


You need to use the xattr gem to access those

http://rubygems.org/gems/xattr

0

精彩评论

暂无评论...
验证码 换一张
取 消