QuickTime movies not consistently playing in front and fullscreen during loop
The following script looks through all the movies in a directory. After looking around it seems that this script incorporates best practices but when I run it the first movie/document plays in the front (present) and fullscreen, but when it switches to the next movie it is behind and not in full screen. When it loops back to the first it is back to full screen.
the extra "activates" were added based on something I read to possibly help with the issue
Ideas?
tell application "Finder" to set movieFiles to (every file of movieFolder whose name extension is "mp4") as alias list
tell application "QuickTime Player"
repeat -- forever
repeat with aFile in movieFiles
--display dialog " movie name " & aFile
set activeMovie to open file aFile
tell activeMovie
set looping to true
set scale to 1
activate
play
set presenting to true
set foo to (duration)
delay foo
close
end tell
activate
end -- loop movieFiles
end -- forever
end tell -- QuickTime
[Re-Titled by Moderator]
Original Title: Sequoia + AppleScript +QuickTime: make all movies play in FRONT and FULLSCREEN in loop of movies