quicktime movie playing fullscreen at startup

I have struggled for a while to find a solution to something I thought would be quite simple: When the computer starts up it should play back a quicktime at full screen, in loopmode.

I solved this quite easily in max, but figured out a way to do this with applescript also.

First, one thing which isnt obvious, is that you can save your quicktime movie with the loop flag checked, so next time quicktime player opens that movie it will loop.

There are lots of applescripts for playing back an already opened movie, but I couldnt find a working solution to first open a movie, then play it back.

First download qtstartup.zip, unzip it, and then follow the instructions below:

  1. open your movie in quicktime player and turn on the loop (apple-L), and save the movie.
  2. go to your login items (in accounts in system preferences), and add your quicktime movie to the login items list.
  3. add the qt-startupscript to the login items, making sure it comes after the quicktime movie.
  4. restart the computer, and hopefully your quicktime movie is looping and playing back at fullscreen.

Here is the script:

on run
delay 10
tell application “QuickTime Player”
activate
delay 5
present movie 1 scale screen
end tell
end run

2 Responses to “quicktime movie playing fullscreen at startup”

  1. hcgilje Says:

    Jusu from Pink Twins sent me a applescript which is able to read a movie, set it to loop mode and then present it at full screen.
    Here is a slight mod:
    tell application “QuickTime Player”
    activate
    open file “pb:Users:hc:Desktop:new.mov”
    set looping of movie “new.mov” to true
    rewind movie “new.mov”
    present movie “new.mov”
    end tell

    you might still have to add the delays if you are doing this at startup, though.
    Thanks, jusu!

  2. erichazann Says:

    Here is a merge of the two.. this way you don’t have to specify the full path with volume name and user folder, and/or load the quicktime movie separately in startup items.. just name it movie.mov and put in /Users/Shared

    on run
    set unixpath to “/Users/Shared/movie.mov”
    set macfile to (POSIX file unixpath)

    delay 10
    tell application “QuickTime Player”
    activate
    delay 5
    open file macfile
    set looping of movie 1 to true
    rewind movie 1
    present movie 1 scale screen
    end tell

    end run

Leave a Reply