Scripting QuickTime Player View mode

Hi all, I’m really stuck on this one, which I feel should be super simple.
I’m trying to automate the full-screen looping of a video, which is simple, except that I want it to use the Panoramic view mode, which is not in the Applescript dictionary. So I’m taking a UI approach, and based on some research I’ve done on these forums, it should look something like this (below). Unfortunately Applescript doesn’t see QuickTime Player as a “process” and if I change that to “application”, it won’t compile. Can anyone help me? Thanks so much in advance.

activate application "QuickTime Player"
tell application "System Events"
	tell process "Quicktime Player"
		tell menu bar 1
			tell menu bar item "View"
				tell menu 1
					pick menu item "Enter Full Screen"
					delay 3
					pick menu item "Panoramic"
				end tell
			end tell
		end tell
	end tell
end tell
tell application "QuickTime Player" to play document 1

Hi.

This seems to work:

tell application "QuickTime Player"
	activate
	set presenting of document 1 to true
	repeat until (document 1's presenting)
		delay 0.2
	end repeat
end tell

tell application "System Events" to keystroke "5" using {command down}

tell application "QuickTime Player" to play document 1