I am desperately finding the solution for the following problem;
How to know programmatically if a Mac Machine is screen locked?
How do I tell my Application that the Mac machine is screen locked/unlocked?
1. I have my Application which runs on a Mac machine,
2. App should behave differently depending on whether the machine is locked or unlocked.
3. if Mac is screen lock, then execute PATH1,
4. else execute PATH2,
Is there any command on Mac which will tell me the whether the current machine is locked or unlocked?
Or
Is there any event that gets dispatched when user locks the machine? What is that event?
Thanks in advance,
Prashant
How to know programmatically if a Mac Machine is screen locked?
How do I tell my Application that the Mac machine is screen locked/unlocked?
1. I have my Application which runs on a Mac machine,
2. App should behave differently depending on whether the machine is locked or unlocked.
3. if Mac is screen lock, then execute PATH1,
4. else execute PATH2,
Is there any command on Mac which will tell me the whether the current machine is locked or unlocked?
Or
Is there any event that gets dispatched when user locks the machine? What is that event?
Thanks in advance,
Prashant