Wake Screen From Sleep
Wake Screen From Sleep
- Subject: Wake Screen From Sleep
- From: email@hidden
- Date: Fri, 18 Dec 2009 11:49:41 -0800
I'm trying to find a way to wake the screen from sleep when certain events happen. I've tried the following which seems to work, but it also causes problems of it's own, especially when I'm working in another program.
tell application "System Events" key code 76 --This will wake the screen by "pressing" the Enter key. end tell
Is there a better way to do this? I'm not wanting to wake from the screen saver, or even wake the computer if it's sleeping, but just wake the screen from the Energy Saver sleep.
Also, is there a way to tell if the screen is asleep and only send this command when it is?
Thanks, Ted |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden