Playing a Quicktime movie with looping via Applescript?

Hi all,

I’m trying to play a movie and have looping turned on…but i can not get the looping playback to work. Here is my code…any ideas??
The movie plays and stops and the end instead of looping.

tell application "QuickTime Player"
	
	open file "Macintosh HD:Users:adamchry:Movies:Elep.mov"
	play movie 1 with looping
	
end tell

Johnwheez,

You had it so close, it just needed a tweak. The thing is, looping is a property of a movie that needs to be set. You can’t specify looping in the play command:

tell application "QuickTime Player"
	open file "Macintosh HD:Users:adamchry:Movies:Elep.mov"
	set the looping of movie 1 to true
	play movie 1
end tell

Try that!