From: hengist podd Date: 2007-07-10T17:42:28+09:00 Subject: Re: Quicktime and Ruby 12 34 wrote: > This isn't what you're looking for, but gives an example of working with > a movie. [...] You're very close. Just needs some minor changes: #!/usr/local/bin/ruby require 'appscript' include Appscript QTP = app('QuickTime Player.app') infile = '/path/to/your file.mp3' outfile = '/path/to/your file.mov' movie = QTP.open(MacTypes::Alias.path(infile))[0] movie.export(:to=>MacTypes::FileURL.path(outfile), :as=>:hinted_movie) movie.close HTH has -- http://appscript.sourceforge.net http://rb-appscript.rubyforge.org -- Posted via http://www.ruby-forum.com/.