Sleep Script

Discussion in 'Mac Programming' started by Macman1993, Jun 3, 2008.

  1. Macman1993 macrumors 6502

    Macman1993

    Joined:
    Nov 23, 2007
    #1
    Alright my hot-corners only work about 10% of the time and when I leave my comp I want the screen saver on. My scripting abilities are so small that I cant write this script myself so would someone please write me a script that would start the screen saver for me. If you could just paste the text into a post it would be greatly appreciated. Oh yeah also if you could write it in applescript that would also be appreciated.
     
  2. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #2
    I use a hot corner to start my screen saver and it never fails to work, as long as I don't move my mouse out of the corner before the screen saver launches.
     
  3. Macman1993 thread starter macrumors 6502

    Macman1993

    Joined:
    Nov 23, 2007
    #3
    I normally do that too but mine rarely work anymore, i'm sure that I'm putting my curser in the corner properly just to take that possibility out. I'll call apple about it I just want a way to start my screen saver in the mean time.
     
  4. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #4
    I found this, but can't vouch for whether it works or not:

    Download a program called Spark:
    http://www.macupdate.com/info.php/id/14352

    Set up a new keyboard shortcut, Cmd+Option+Ctrl+S is what I use, then set it to do this applescript:

    do shell script "/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine"
     
  5. Darkroom Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #5
    not sure about starting your screen saver, but if you are running Mac OS 10.5, you can press Control + Shift + Eject to sleep your display.
     
  6. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #6
    Yes, that sleeps the display, but won't allow a password lock, like a screen saver will. There's no security provided in sleeping the display.
     
  7. Macman1993 thread starter macrumors 6502

    Macman1993

    Joined:
    Nov 23, 2007
    #7
    I don't want to sleep the display I want to start the screen Saver.
     
  8. Macman1993 thread starter macrumors 6502

    Macman1993

    Joined:
    Nov 23, 2007
    #8
    Cool program but that script didn't work for me.
     
  9. Macman1993 thread starter macrumors 6502

    Macman1993

    Joined:
    Nov 23, 2007
    #9
    Turns out spark has a built in script to do just what I wanted. Thanks for giving me this app.
     

Share This Page