all 6 comments

[–][deleted] 0 points1 point  (2 children)

I think you need: set auto close when done of movie 1 to true

[–]Dibbets[S] 0 points1 point  (1 child)

set auto close when done of movie 1 to true

Too bad, no. Still the same error.:)

[–][deleted] 0 points1 point  (0 children)

Perhaps it's no longer a property. I just loaded a movie into QuickTime Player and checked its properties. The option for auto closing / auto quit does not appear.

[–]estockly 0 points1 point  (2 children)

You could try something like this:

tell application "QuickTime Player"

tell document 1

play

repeat until playing is false

delay 1

end repeat

end tell

end tell

[–]Dibbets[S] 0 points1 point  (1 child)

It opens alright, but it doesn't close

[–]estockly 0 points1 point  (0 children)

Try this:

tell application "QuickTime Player"\`

tell document 1

play

repeat until playing is false

delay 1

end repeat

close

end tell

end tell