Sha256: 1ea82e34ff6bd09d5f92ccad19fcac2dcde1b77af87cda1a2c337a1418073f38

Contents?: true

Size: 888 Bytes

Versions: 1

Compression:

Stored size: 888 Bytes

Contents

= spotlight

Description goes here.

== Synopsis

 require 'spotlight'

=== Finds files matching a given query

 query = Spotlight::Query.new('kMDItemKind = "JPEG image" && kMDItemPixelHeight > 2000')
 query.execute.map {|item|
   puts item.get(:kMDItemPath)
 }

=== Gets the metadata attributes for the specified file

 item = Spotlight::Item.new('/Users/youpy/foo')
 item.get(:kMDItemKind)

== Note on Patches/Pull Requests
 
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
  future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.

== Copyright

Copyright (c) 2010 youpy. See LICENSE for details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spotlight-0.0.2 README.rdoc