Re: scripting QuickTime
Re: scripting QuickTime
- Subject: Re: scripting QuickTime
- From: Brennan Young <email@hidden>
- Date: Fri, 06 Apr 2001 14:17:36 +0200
- Organization: Magic Lantern
"Patrick S. Page-McCaw" <email@hidden> wrote
>
I've tried the dictionary and recording and am beginning to think it cant
>
be done. Does anyone know how to: 1. delete the sound tracks of quicktime
>
movies?
Well, my recommendation is to use the Quicktime 5 player, whose
dictionary is much more thorough. It gives you both 'delete' and 'high
quality', which are missing from QT4's player.
Applescript is very stable in QT5 public preview and everyone on the
Quicktime/Applescript axis should have no trepidation using it. If you
absolutely must use an earlier version of Quicktime, get hold of the QT5
player and see if it runs on top of QT4 system components. (Let us know
if it works!)
QT5 player has one of the best dictionaries I've seen for a while. You
can even manipulate individual frames of a movie. I expect to use it a
great deal in future.
-- This should delete all the audio tracks in a movie...
tell application "QuickTime Player"
tell movie 1
set t to 1
repeat while t <= (count tracks)
if kind of track t is "Sound" then
delete track t
else
set t to t + 1
end if
end repeat
end tell
end tell
>
2. change the High Quality tag to high?
tell application "QuickTime Player"
tell movie 1
set high quality of track 1 to true
end tell
end tell
--
_____________
Brennan