From: Gabriele Marrone Date: 2006-11-22T06:27:20+09:00 Subject: Re: OS X File information question On 21/nov/06, at 19:41, Jonathan Waddilove wrote: > OS X (tiger) stores some useful information about files, including > "where from" and "spotlight commnets". > > Is there an (easy) way to access these fields from Ruby? Give a look here: http://developer.apple.com/macosx/spotlight.html Under the "Command-Line tool" section you can find something interesting. For example: piastrella:~/Desktop$ mdls -name kMDItemFinderComment test.txt test.txt ------------- kMDItemFinderComment = "This is a Spotlight comment." You could wrap that tool in a Ruby class or something like that. > > Many thanks, Jonathan -- Gabriele Marrone