How can I run an AppleScript or shell command on Mac OS X at screen unlock?

3

Note that this is not the same as startup or login. I never log out of my machine and I want to run the script whenever I unlock the machine to start working.

camdez

Posted 2012-07-10T15:30:42.233

Reputation: 249

This might be better on Ask Different.

– bahamat – 2012-07-10T15:44:51.950

@bahamat meta.superuser.com/questions/2967

– Lri – 2012-07-10T15:51:02.660

FYI, this appears to be a dup of http://superuser.com/questions/178921

– pinko – 2012-07-24T17:56:21.540

Answers

0

ControlPlane doesn't seem to have a rule for unlocking the screen, but you could probably some other rule in its place. If you enabled locking the screen when going to sleep and put the computer to sleep instead, you could schedule an action when waking up.

Lri

Posted 2012-07-10T15:30:42.233

Reputation: 34 501