FSPath methods for mac (move_to_trash, color labeling, spotlight comments, …)


License
MIT
Install
gem install fspath-mac -v 3.2.1

Documentation

fspath

Better than Pathname

Build Status

OS X stuff

Move to trash:

FSPath('a').move_to_trash

Get finder label (one of :none, :orange, :red, :yellow, :blue, :purple, :green and :gray):

FSPath('a').finder_label

Set finder label (:grey is same as :gray, nil or false as :none):

FSPath('a').finder_label = :red

Get spotlight comment:

FSPath('a').spotlight_comment

Set spotlight comment:

FSPath('a').spotlight_comment = 'a file'

Copyright

Copyright (c) 2010-2019 Ivan Kuchin. See LICENSE.txt for details.