I need either a script or a terminal command that will lock / temporarily suspend input from both the keyboard and mouse for 30 seconds.
The script so far looks like this:
tell the application "Finder" to activate
tell the application "Finder" to display dialog "That action is not allowed on public machines" with icon stop buttons {"Cancel it!"} default button 1
if the button returned of the result is "Cancel it!" then tell the application "ScreenSaverEngine" to activate
The screensaver that activates is “KPSaver” (the kernel panic screen saver).
The script will be run as an application via remote desktop, and it would be nice if there was another separate app that would immediately cancel the first app.
Any help greatly appreciated.