I’m very new at this, and I’m sure this is an easy script: All i wanna do is play another movie when the first one is done. That’s all, but I can’t figure it out…
Here’s the code i have so far:
set movieFile to alias “mycomp:Users:comp:Movies:Loading.mov”
tell application “QuickTime Player”
activate
stop every movie
open movieFile
tell movie 1
rewind
present movie 1 scale screen
play
end tell
end tell
When I try to add another movie, the first movie blinks, then jumps to the next movie. How to I keep movie 1 to play out, and THEN play the second movie?
Thanks!!!
Replace the last two lines before the two "end tell"s with the following:
set theDuration to the duration of movie movie / 607.06
present movie 1 scale screen
play movie 1
delay theDuration
For QuicktimeX player:
set sMovieFile to "Volumes:Movies:media.mp4"
set sMovieFile2 to "Volumes:Movies:media2.mov"
set lMovies to {sMovieFile, sMovieFile2}
tell application "QuickTime Player"
activate
repeat with sMovie in lMovies
open sMovie as alias
tell document 1
set nDuration to duration -- store duration (in seconds) of current movie
present -- full screen mode
play
delay nDuration
end tell
end repeat
end tell
Model: Mac Pro (Early 2008), 14 GB RAM
AppleScript: 2.2.1
Browser: Opera/9.80 (Macintosh; Intel Mac OS X 10.7.2; U; en) Presto/2.10.229 Version/11.60
Operating System: Mac OS X (10.7)