Quicktime: present multiple movies on multiple monitors

Hi all,

I discoverd this forum while searching for Applescript help and I see that it may become invaluable to me in my new line of work…

Right now I am trying to present two movies, full screen, on a second and third monitor automatically without any user intervention. Basically, I have a Mac Pro with a main display and two 30" cinemas attached as 2nd and 3rd monitors. I have two quicktime movies, one for each monitor, that need loop and then play simultaneously (they are timed specifically so that one movie rolls into the next). I have come up with the following code to do this for me automatically. My problem is that one of the movies is presented on the primary display and not on the third display. Any suggestions?


tell application "Finder"
	open {document file "left_dark.mov" of folder "Menu Boards" of startup disk}
end tell

activate application "QuickTime Player"
tell application "System Events"
	tell process "QuickTime Player"
		click menu item "Loop" of menu 1 of menu bar item "View" of menu bar 1
	end tell
end tell

tell application "Finder"
	open {document file "right_dark.mov" of folder "Menu Boards" of startup disk}
end tell

tell application "System Events"
	tell process "QuickTime Player"
		click menu item "Loop" of menu 1 of menu bar item "View" of menu bar 1
		click menu item "Play All Movies" of menu 1 of menu bar item "View" of menu bar 1
	end tell
end tell

tell application "QuickTime Player"
	present movie 1 display 2
	present movie 2 display 3
end tell

No double posting, please. Let’s use the thread in Code Exchange:

http://bbs.applescript.net/viewtopic.php?id=20859