mp3 path for gIndAudio QTE
Posted: Sat May 30, 2009 11:03 am
I am experimenting with different audio codecs and I'm stuck on this one and can't figure it out.....
I'm trying to load an mp3 into QTExternal and save it out as another file type available in QTExternal. The below code works but pops up a screen that asks you to select a source file to load before the conversion screen comes up. I'm trying to preload an mp3 into "gIndAudio" so you don't get that first screen.
As soon as I take out "answer file "Select audio file" Nothing works. I've tried "put "C:\Test\test.mp3" into gIndAudio but tha won't work. I tried it with filepath...etc but nothing.
How to I hardcode the filepath of the mp3 directly into gIndAudio without the "answer file"?
Many thanks again
Bidge
I'm trying to load an mp3 into QTExternal and save it out as another file type available in QTExternal. The below code works but pops up a screen that asks you to select a source file to load before the conversion screen comes up. I'm trying to preload an mp3 into "gIndAudio" so you don't get that first screen.
As soon as I take out "answer file "Select audio file" Nothing works. I've tried "put "C:\Test\test.mp3" into gIndAudio but tha won't work. I tried it with filepath...etc but nothing.
How to I hardcode the filepath of the mp3 directly into gIndAudio without the "answer file"?
Code: Select all
global gIndAudio
on MouseUp
set the filename of player "Player" to empty
answer file "Select audio file"
put it into gIndAudio
set the filename of player "Player" to gIndAudio
put movieControllerID of player "Player" into mc
qtInitializeEditing mc
qtSelectAll mc
qtCopy mc
qtInitializeEditing mc
qtExport mc
end MouseUp
end MouseUp
Bidge