Re: importing new video track with Quicktime
Re: importing new video track with Quicktime
- Subject: Re: importing new video track with Quicktime
- From: Brennan <email@hidden>
- Date: Wed, 12 Nov 2003 12:50:07 +0100
"Karl Kennedy" <email@hidden> wrote:
>
> Hi, Im trying to write a script that imports a video file
>
> as a new track in a movie.I'm basing it around the
>
> applescript sample code that imports an image as a new
>
> track. here is the line in question
>
>
>
> set the new_track to make new track at beginning with data
>
> imagefile
>
>
>
> The imagefile variable is selected from the file chooser,it
>
> is a .mov movie. The result of this line is that the script
>
> bombs out! Any help is much appreciated.
Interesting. This crashes QuickTime Player for me too, although it works
perfectly with still images. I think I will file a bug report.
(OS X 10.2.8, QT 6.3)
For now, you might consider opening the movie, copying it, and then adding
it to your other movie.
set f to choose file
tell application "QuickTime Player"
set targetMovie to movie 1
set m to (open f)
tell m
select all
copy
close saving no
end tell
tell targetMovie
add with scaled
end tell
end tell
Presumably you were using 'add at beginning' for a good reason, but if
it's layering you are thinking about, consider that tracks have a layer
property which may be manipulated.
Good luck. (Would be interested to hear how you get on).
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.