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
精彩评论