stuck again!
stuck again!
- Subject: stuck again!
- From: c w <email@hidden>
- Date: Fri, 28 May 2004 21:31:41 +0100
OK, I am getting the hang of this, but I am stuck again.
I am trying to add frame numbers to a QT movie. My easy hack is to
premake a movie file with plenty of ascending frames and add it as a
track. When I get fancy I can start it at frame other than 1, etc.
Or generate the caption text in AS. (But for now, I do it in Panorama,
an environment in which, unlike AppleScript, I can code at near light
speed)
I have tried a million things, but QT keeps choking at the "add"
command. I recorded it and got it working, but only by explicitly
naming the movie.
The library says it wants a reference, (and only a reference can be
coerced to a reference, so move 1 must be a reference, right? (Your
book rules!) :)
But it's not working.
I tried it as a string too. Anyway, I will be back tomorrow.
This is what I am doing:
property timecode_source : "Digital:resources:quicktime player
bits:frames.mov" as alias
tell application "QuickTime Player"
--look at movie 1
--get the length of movie 1
set movie_length to (the duration of movie 1)
set my_movie to movie 1 as reference
--set my_movie to the name of movie 1 as string as text
--open frame movie 2
open timecode_source as alias
--go the the beginning
set the current time of movie 1 to 0
--select up to the length of movie 1
select movie 1 at 0 to movie_length
copy movie 1
--close frame movie
close movie 1 saving no
--add track
--add movie my_movie scaled yes
--this does not work
--add movie "blar.mov" with scaled
--this does work
--set my_movie to my_movie as string
--set my_movie to (text of ((my_movie as string) as record)) as string
add movie my_movie scaled yes
--this still does not work
end tell
Chris Watts
The Corpse Bride
3 Mills Studios
Three Mills Lane
_______________________________________________
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.