From: 12 34 Date: 2007-07-10T12:33:03+09:00 Subject: Re: Quicktime and Ruby Ari Brown wrote: > Hey all > > I read a previous post from early April about working applescript > into Ruby. BUT.... > > I need to be able to convert mp3s into hinted movie format (which > isn't covered ANYWHERE). Whats the best way to do this in any > applescript wrapper? > > Thanks, > Ari > -------------------------------------------| I'm not sure I understand the question. But does this help rb-appscript.rubyforge.org This isn't what you're looking for, but gives an example of working with a movie. I got the following in response to a question I asked from HAS: require 'appscript' include Appscript QTP = app('QuickTime Player.app') # To export the middle frame of a movie file to a PICT file: movie = QTP.open(MacTypes::Alias.path('/path/to/your movie.mov'))[0] movie.current_time.set(movie.duration.get / 2) movie.export(:to=>MacTypes::FileURL.path('/path/to/middle frame.pict'), :as=>:picture) movie.close Hope this helps. -- Posted via http://www.ruby-forum.com/.