AppleScript: QT-Presentation on StartUp

on run
	set unixpath to "/Users/name/Desktop/file.mp4"
	set macfile to (POSIX file unixpath)
	delay 1
	tell application "QuickTime Player"
		activate
		delay 1
		open file macfile
		set presenting of document 1 to true
		set looping of document 1 to true
		play document 1
	end tell
end run