From: Ari Brown Date: 2007-07-10T21:23:28+09:00 Subject: Re: Quicktime and Ruby Hey, thanks for your help. I just have a quick question. On Jul 10, 2007, at 4:42 AM, hengist podd wrote: > #!/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' What does the 'MacTypes::Alias.path(infile))[0]' do? > movie = QTP.open(MacTypes::Alias.path(infile))[0] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I don't understand what the Alias and the [0] are doing. I guess it makes an alias of the file? > movie.export(:to=>MacTypes::FileURL.path(outfile), :as=>:hinted_movie) > movie.close -------------------------------------------| Nietzsche is my copilot