Method: FieldMatter::StrangeMatter#mdluvin
- Defined in:
- lib/fieldmatter/strangematter.rb
#mdluvin(file) ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/fieldmatter/strangematter.rb', line 35 def mdluvin ( file ) file_path = self.repo_path + '/' + file = %x{mdls -name 'kMDItemOMUserTags' -raw "#{file_path}"|awk '/[^()]/ {print $NF}'|tr -d '\n'}.split(',') puts "Updating tags associated with #{file}: #{tags}" # Possibly temporary, might change the array/hash construction to different methods .store(file, ) end |