Re: quicktime and image sequence
Re: quicktime and image sequence
- Subject: Re: quicktime and image sequence
- From: Brennan <email@hidden>
- Date: Fri, 14 Jun 2002 11:32:04 +0200
Robert Ramsay <email@hidden> wrote
>
I have a script that will import a quicktime movie and generate a
>
sequence of targa images to export to a digital disk recorder.
>
>
I would like to do the reverse, that is open a image sequence (targa)
>
and
>
have the script export the sequence as a self contained quicktime movie.
>
>
I don't appear to understand how one makes quicktime via apple script
>
reference the image sequence to import as a movie.
>
>
As in
>
open image sequence "Mac OS X:Users:robert:robbie000.tga"
>
once this is done how do you reference to export it as a quicktime??
AFAIK, when you use 'open', 'movie 1' should then refer to the most recently opened movie (even if it is a movie that has been generated/converted/imported), but I would do it another way; Most lines of applescript return a value, and 'open' is no exception. 'open' returns a reference to the open movie.
set myMovie to (open image sequence "Yadda:yadda000.tga")
tell myMovie
... do stuff
end tell
Alternatively;
tell (open image sequence "Yadda:yadda000.tga")
... do stuff
end tell
If the open command fails (e.g. the file is missing, or not legible by Quicktime) the result will be void and you will get 'No result was returned from this expression' or however they put it.
The former allows you to insert some line between 'set' and 'tell' checking that the operation was completed successfully, which would offer more robustness, but both should work fine if there are no problems with the file/path.
HTH
Brennan
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.