using ruby-spotlight like activerecord
require 'spotlight_model/base'
class Item < SpotlightModel::Base
with_scope 'path/do/data'
end
@items = Item.find('kMDItemKind == "JPEG image"','kMDItemPixelHeight < 500')
@items.each{|x| puts x.kMDItemFSName}
- write more easily search query (DSL like)