r/applescript • u/ITechEverything_YT • May 07 '21
Apple Script that runs specific commands based on whether Mac is locked or unlocked.
Hey!
I want to make an AppleScript which will perform ‘Action A’ if the Mac is locked, and will perform ’Action B’ if the Mac is unlocked, is there a way to do this?
Thanks.
5
Upvotes
1
u/yasire May 07 '21
locked meaning screen saver? you can look for screen saver process.
1
u/[deleted] May 08 '21
There’s an app called ControlPlane that might do this
0
u/[deleted] May 07 '21
[deleted] — view deleted comment