• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Wake Screen From Sleep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Wake Screen From Sleep
      • From: email@hidden
  • Prev by Date: Re: Trying to convert QXP Annotate script to work for InDesign
  • Next by Date: Re: Excel 2004 issue
  • Previous by thread: re: constant folding
  • Next by thread: Re: Wake Screen From Sleep
  • Index(es):
    • Date
    • Thread