Re: Having trouble with a QuickTime script
Re: Having trouble with a QuickTime script
- Subject: Re: Having trouble with a QuickTime script
- From: Emmanuel <email@hidden>
- Date: Wed, 19 Sep 2001 22:21:22 +0200
At 21:00 +0200 19/09/01, Argyl L. Dickson, Jr. wrote:
>
The finder got an error and the file that is referenced in the script doesn't
>
understand the open image sequence message.
>
to createMovie(referenceName, referenceFolder, targetFolder, movieNumber,
>
frameRateVar)
>
set movieNumber to movieNumber + 1
>
tell application "Finder"
>
set movieFolder to folder (referenceName & movieNumber as text) of
>
targetFolder
>
set firstFile to file 1 of movieFolder
>
end tell
>
tell application "QuickTime Player"
>
open image sequence firstFile frames per second frameRateVar
>
end tell
>
end createMovie
I did not check specifically, but you are passing to QTPlayer a reference
to a file under a form which belongs to the Finder (something like: file
"FileName" of folder "FolderName" of disk "Macintosh HD" of application
"Finder"). I would advise to make it AppleScript-universal by coercing it
into the "alias" type.
Between your two "tell ..." wrappers, you could insert "set firstFile to
firstFile as alias". Just a thought - not a tested one.
Emmanuel