Re: I can't script a QT movie to save to save my life
Re: I can't script a QT movie to save to save my life
- Subject: Re: I can't script a QT movie to save to save my life
- From: JJ <email@hidden>
- Date: Fri, 05 Oct 2001 19:52:28 +0200
>
to createMovie(referenceName, referenceFolder, targetFolder, movieNumber,
>
frameRateVar)
>
tell application "Finder"
>
set movieFolder to folder (referenceName & movieNumber as text) of
>
targetFolder
>
set firstFile to file 1 of movieFolder
>
end tell
>
set firstFile to firstFile as alias
>
set targetFolder to targetFolder as alias
>
set newMovieName to (referenceName & movieNumber as text)
>
tell application "QuickTime Player"
>
launch
>
activate
>
stop every movie
>
close every movie saving no
>
open image sequence firstFile frames per second frameRateVar
>
save movie 1 in newMovieName <--This is where it breaks every time
I don't know the information enclosed into "referenceName", but you should
save your movie into an "unexistent" file.
set newMovieName to "HD:Desktop Folder:" & "myfile.mov"
tell application "QuickTime Player"
save movie 1 in newMovieName
end tell
JJ