Toggle navigation
All Forums
Recent Posts
Sign In
Sleep display
mathiasb
Posted:
January 26, 2009 9:35AM
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
mathiasb
Posts:
14
member
January 26, 2009 12:02PM
Really nowbody who can help me?
Reply 2 of 4
bclapper
Posts:
237
member
January 26, 2009 12:38PM
Cmd + Shift + Eject
Reply 3 of 4
floorjack
Posts:
2,726
member
January 26, 2009 8:24PM
You can set a hot corner to do the same thing. Look in "Expose & Spaces" in pref's.
Reply 4 of 4
mathiasb
Posts:
14
member
January 27, 2009 9:30AM
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.
Comments
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"