Sample Header Ad - 728x90

Run a program/script when the screen is locked or unlocked

27 votes
8 answers
23564 views
Is there a way to run a specified script or program when the screen is locked or unlocked? Ideally a bash function or an AppleScript. Is there an event that I could subscribe to that would allow me to do that? Or an existing app that supports this?
Asked by nwinkler (8886 rep)
Dec 3, 2014, 12:50 PM
Last activity: Aug 20, 2024, 06:34 AM