开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜