Sleep display

Posted:
in macOS edited January 2014
i'm chearching an Applescript to sleep the display on my iBook running Tiger. I visited allready all the dutch apple forums but I didn't find, so if someone can give me an easy applescript?

Comments

  • Reply 1 of 4
    Really nowbody who can help me?
  • Reply 2 of 4
    Cmd + Shift + Eject
  • Reply 3 of 4
    floorjackfloorjack Posts: 2,726member
    You can set a hot corner to do the same thing. Look in "Expose & Spaces" in pref's.
  • Reply 4 of 4
    I've found it, it's following script:



    Code:


    do shell script "#!/bin/sh



    MAGIC_NUMBER=107374183

    PMSET=/usr/bin/pmset

    GREP=/usr/bin/grep

    AWK=/usr/bin/awk

    SLEEP=/bin/sleep



    $PMSET force -a displaysleep $MAGIC_NUMBER

    $SLEEP 1

    $PMSET force -a displaysleep `$PMSET -g | $GREP displaysleep | $AWK '{print $2}'`

    $SLEEP 1"



Sign In or Register to comment.