Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capture Wrong Password Event on Apple Script

Tags:

applescript

Is it possible to capture the "Wrong Password" message when logging into a Mac using AppleScript?

I looked in the Dictionary -> System Events, but didn't find what I'm looking for.

I would like to create a security system that takes a picture of the user when a wrong password is entered + some stuff (like using iMessage to notify).

Since this is also for learning purpose, I would like to know how to use AppleScript, and not install an app that do the same thing.

Thanks,

like image 349
htaidirt Avatar asked Feb 05 '26 20:02

htaidirt


1 Answers

After a quick bout of googling it looks like Applescript will stop running when the computer locks. However, using a third party program like SleepWatcher you could potentially start an Applescript, though I'm not sure if then the Applescript would run or return a timeout error as it does when trying to run without SleepWatcher. Best of luck!

like image 139
scohe001 Avatar answered Feb 13 '26 03:02

scohe001