• 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
Re: wake screen from sleep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wake screen from sleep


  • Subject: Re: wake screen from sleep
  • From: David C Andrews <email@hidden>
  • Date: Tue, 09 Aug 2005 19:52:54 -0400

Wake Up!

When I wake up the Mac, I use a harmless Down-Arrow key. Although I haven't tried this from a script, try inserting the line

key code 125 -- keystroke (ASCII character 31) -- down arrow

in place of your

keystroke space

David A

On Aug 9, 2005, at 1:26 PM, Håvard Graudo wrote:

Someone sendt me this suggestion off-list:

tell application "System Events"
keystroke space
end tell


It works, but will direct a space towards whatever happens to be frontmost. To make it Mostly Harmless I made a Finder window to receive the space. It is not elegant, but serves the purpose. Here is what I use (edited):


tell application "Finder"
activate
make new Finder window
tell application "System Events"
keystroke space
end tell
close window 1

I would prefer a "keystroke <none> using command" or "set sleep of every screen to false"

Håvard


Den 9. aug. 2005 kl. 00:50 skrev Eric Geoffroy:

Hi,

I have a very similar need. Here's something I was experimenting with. If you figure something out, let me know.

- Eric

on idle
    tell application "System Events"
        log out
        --        keystroke "." using command down
        delay 1
        key code 53 -- escape key
        return 110
    end tell
end idle


On Aug 5, 2005, at 1:42 PM, Håvard Graudo wrote:

How do I wake the screen from sleeping?

I have some Macs running stay-open scripts watching hot-folders on a server. The Macs don't deep sleep, only screen is black (no password on wake).
When the script finds a file to work on I would like to wake the screen.


Håvard

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >wake screen from sleep (From: Håvard Graudo <email@hidden>)
 >Re: wake screen from sleep (From: Eric Geoffroy <email@hidden>)
 >Re: wake screen from sleep (From: Håvard Graudo <email@hidden>)

  • Prev by Date: Re: Introduction and first questions
  • Next by Date: Re: Finder Info to get real audio media source URL
  • Previous by thread: Re: wake screen from sleep
  • Next by thread: Safari bookmarks - adding
  • Index(es):
    • Date
    • Thread