How do I caculate the number of frames in a quicktime movie?
For a simple 1 video track movie this works:
set the_movie to choose file – choose a qt movie
tell application “QuickTime Player”
launch
activate
open the_movie
tell front movie
stop
rewind
set vid_track to (first track whose type is “vide”)
end tell
set frame_count to (count frames of vid_track)
end tell
gl,