I saw that, and in fact that’s what I’m using as my library. But I
need to convert the file into Hinted Movie format. In quicktime, it’s
under File -> Export -> Hinted Movie
What would I write in ‘:as’ if I wanted to do that? Or where could I
get a list of possible file conversions for this?
aRi
--------------------------------------------|
If you’re not living on the edge,
then you’re just wasting space.
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?
Hey, thanks for your help. I just have a quick question.
What does the ‘MacTypes::Alias.path(infile))[0]’ do?
movie = QTP.open(MacTypes::Alias.path(infile))[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I don’t understand what the Alias
MacTypes::Alias.path(…) creates a new Alias object. The MacTypes
module is discussed in more detail in the appscript documentation.
and the [0] are doing.
QTP’s ‘open’ command returns an array of references to the newly opened
movies, in this case [app(‘QuickTime Player’).movies[‘some file’]].
However, we just want the first item in that array so we call its #[]
method.
HTH
has
p.s. The equivalent line in AppleScript would read:
set theMovie to item 1 of (open alias "HD:path:to:your file.mp3")
except that AppleScript uses an HFS path string rather than a POSIX one
for legacy reasons.
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?
You can tell QuickTime Player to open each file and export it as a
hinted movie. This is not really a Ruby matter, though certainly you
might use Ruby as a basis for sending the necessary Apple events. m.
I saw that, and in fact that’s what I’m using as my library. But I
need to convert the file into Hinted Movie format. In quicktime, it’s
under File → Export → Hinted Movie
What would I write in ‘:as’ if I wanted to do that? Or where could I
get a list of possible file conversions for this?
As I said, this is not a Ruby matter. You have to read the dictionary
(the AppleScript dictionary). m.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.