Wake up, play full video and sleep.. how?

Discussion in 'Mac Programming' started by the vj, Sep 18, 2008.

  1. macrumors 6502a

    Joined:
    Nov 23, 2006
    #1
    Ok, this is very silly but I do not know how...

    I need my Mac Mini to wake up at 8pm, start up a quicktime video full screen in a loop until 2am, then shut down again. And I need it to do that over and over again for a month.

    How can I do that?

    I want to tell the computer what video to play back once. Probably I may create a new video later on and I would have to switch videos and play the new one only in a loop as well.

    The thing is...

    I have this projector that is gonna be playing back a video during nightime. No one is going to controll it. In order to power down the projector I need to put the computer to sleep and not sending any video signal at all. That way the projector will go to sleep and it will wake up again by itself when receiving a video signal.

    Thank you very much for your help.
     
  2. macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #2
    From system preferences, choose energy saver, then "Schedule". You can then set your wake and sleep times. Then you can set up an applescript to launch your video. I would just set an alarm in iCal to run the apple script. It shouldn't be too rough using the quicktime or VLC dictionary.

    -Lee
     
  3. thread starter macrumors 6502a

    Joined:
    Nov 23, 2006
    #3
    Duh, if I am placing a question here is to actually have some one figure out the apple script for me.
     
  4. macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #4
    Good luck, with that attitude! You didn't even mention an intent to use applescript for this task, and you certainly didn't say "I'm trying to start a video in quicktime in full-screen mode in a loop, i'm having trouble doing this with applescript, here's what i've tried, any tips?". Open Script Editor, under file choose Open Dictionary, and choose the program you want to play the movie with. All of the available actions will be listed. Chances are it will be something like:
    Code:
    tell application "x"
      play "Macintosh HD::Movies::My Movie.mpg"
      fullscreen
      repeat on
    end tell
    
    -Lee
     
  5. thread starter macrumors 6502a

    Joined:
    Nov 23, 2006
    #5
    Mmmm....! thank you. Ages without using it since OS9.

    Dude, I am doing 387581273487623498726 a minute, I wish I could be a programmer, 3D animator and a bunch stuff, no time. I even wish i had a boyfriend for my girlfriend, no time.

    Thanx.
     
  6. macrumors 68000

    Hawkeye411

    Joined:
    Jun 6, 2007
    Location:
    Canada EH!!!
    #6
    lol ... I wish I had a girlfriend for my wife ;)
     
  7. macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #7
    Code:
    tell application "QuickTime Player"
    	activate
    	open "Path:To:Movie:Here"
    	set doc to (get document 1)
    	set doc's looping to true
    	present doc
    end tell
    
     

Share This Page