So, I wrote this script last year as a folder action that takes in a QuickTime movie that is saved in the folder and spits it out as a DV stream that is compatible with our on-air server at the tv station. Here is the issue. In QuickTime 6.5, on Panther, when you do this, it goes really fast. Same as if you manually export instead of letting the script do it for you. However, on our new Tiger machines, if you use the script, it exports, but it takes much longer. In comparison, it might take the Panther machine 8 seconds to export the clip using the script where it takes QT 7 40 or so seconds to do this. Now, if you just manually export using the same settings that the script calls, it goes at the normal speed! This is extremely frustrating as you can imagine. It seems only using the script and QT 7 results in this slowness. Doing it manually or using the script with earlier versions of QuickTime works beautifuly and fast. Does anyone have any ideas? Here is the script if you want to try it out on your own. I appreciate any feedback.
on adding folder items to this_folder after receiving these_items
delay 15
tell application "QuickTime Player"
launch
open these_items
-- get the name of the movie
set the movie_name to the name of movie 1
-- check to see if the opened movie can be exported
set doneLocation to "Edit HD:Documents:Upload:"
if (can export movie 1 as DV stream) is true then
set the new_file to (doneLocation & movie_name)
-- export the movie as DV stream movie
export movie 1 to new_file as DV stream using settings preset "DV NTSC 48 kHz" -- close the movie
close movie 1
else
error "This movie cannot be exported as a DV stream."
end if
quit
end tell
display dialog "Ready for next file."
tell application "Finder"
move (every file of folder "Edit HD:Documents:Flip:" whose name extension is "dv") to folder "Edit HD:Documents:Upload:" with replacing
end tell
tell application "Finder"
delete every file of folder "Edit HD:Documents:Flip:"
end tell
end adding folder items to