[X4U] How wake-up my screen with a command-line?

Simon Forster simon-lists at ldml.com
Mon Dec 6 05:23:30 PST 2004


On 6 Dec 2004, at 12:11, Keuja wrote:

> In a batch script shell, I want to wake-up my screen (interrupt the
> screen) to show the result when my very long script is finished.

System Preferences -> check "Enable access for assistive devices".

In terminal:

osascript << *END*
tell application "Finder" to activate
tell application "System Events"
tell process "Finder"
keystroke "x"
end tell
end tell
*END*

There may be a better command to issue, but this works on my iMac via 
SSH.

HTH

Simon Forster
_____________________________________________________
  LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
  Tel: +44 (0)870 1999 780   Fax: +44 (0)70 9230 5247
_____________________________________________________



More information about the X4U mailing list