Trying to get this script to work with a USB thumb drive. It works to log you out when the drive is removed but i cant get it to log me back in when the drive is reinserted.
any ideas’s on how i can get this script to run behind the screen saver?
tell application "Finder" to if exists "/Volumes/Jeff/LOGIN12353423!@$.rtf" as POSIX file then delay 2 tell application "System Events" tell security preferences set require password to wake to false end tell end tell tell application "ScreenSaverEngine" to quit else tell application "System Events" tell security preferences set require password to wake to true end tell end tell activate application "ScreenSaverEngine" end if
Browser: Safari 534.30
Operating System: Mac OS X (10.6)