From: 12 34 Date: 2007-07-04T09:19:49+09:00 Subject: Re: RubyOSA for QuickTime Laurent Sansonetti wrote: > Hi, > > On 7/3/07, 12 34 wrote: >> How do I access the properties of a QuickTime movie? I'm trying RubyOSA, >> but am open to other ideas. > > Why not trying to access the QTKit framework from Ruby via RubyCocoa? Didn't know I could, and even if I had I didn't know what do to with it. I thought RubyCocoa went to the other way. That is, to use Ruby in XCode. But obviously it's more than that. > > Here is an example that prints all the metadata properties of a given > movie. > > $ cat a.rb > require 'osx/foundation' > OSX.require_framework 'QTKit' > puts OSX::QTMovie.movieWithFile_error(ARGV[0], nil).movieAttributes > > HTH, > Laurent Either I've already installed RubyCocoa or I can't. Neither machine will allow the pkg installer to work. And I tried by hand recently on my iMac desktop, and I got an error at some point. So unless I figure out how to get around that I'm up a creek. Also what is cat a.rb. I don't find cat in Ruby, and man cat, tell me it's concatenate and pring; but that doesn't make sense to me in this context. Much to learn. Thanks for any other further suggestions. -- Posted via http://www.ruby-forum.com/.