From: Frederick Cheung Date: 2006-11-22T07:26:01+09:00 Subject: Re: OS X File information question It's a little more tricky writing to these: to write a finder comment (now called spotlight comment, but implementation-wise it's the same) you need to send an appleevent to the finder (there'a a code sample on developer.apple.com for this). To set the where_from, you need to use the undocumented api MDItemSetAttribute, since in theory meta deta doesn't just get set at random times, but when the importer for that file is run. MDItemSetAttribute does however enable you to set metadata at will (those changes would of course be blown away if the user chose to reindex their files. Fred -- Posted via http://www.ruby-forum.com/.