I am having a problem with trying to figure out why I have this error showing up. I am trying to play a movie in full screen and in a loop with QuickTime Player Version 10.1 (501) on my Mac Mini. What I want to do is to be able to play the movie, full screen, and in a loop when I restart my Mac. I put the script in my login items, but when I restart my Mac or reboot it, the error shows "Can't get document 1. Invalid index." and the movie does show up, but does not play, not in full screen, and not in a loop. Only when I click the script again will it do all those things I want. If anyone can help me out, I really appreciate it and also, I did save it as an application. Thank you.
Here is the code of what I have:
tell application "QuickTime Player"
activate
open "PathtoFile:movie.mov"
set looping of document 1 to true
present document 1
play document 1
end tell
Here is the code of what I have:
tell application "QuickTime Player"
activate
open "PathtoFile:movie.mov"
set looping of document 1 to true
present document 1
play document 1
end tell