I run a "wakeup" script every morning that opens a youtube playlist. However it doesn't show on screen because my computer auto locks after a few minutes of idle time.
I'm using the following script that I got from another question
tell application "System Events"
tell security preferences
set require password to wake to false
end tell
end tell
tell application "ScreenSaverEngine" to quit
But it doesn't actually make my computer screen turn on. I have to press a key/move the mouse. And it actually made my computer unusable, only the menu of the frontmost application worked, had to restart. Maybe it didn't properly unlock?