Thank you very much Greg! I must admit I haven't tried this yet but I'll give it a shot and let you know what I think as soon as I have some free time to tinker with this. MY objective is to be able to have my script run automatically via launchd, say every 10min to let me know if I have new email, but I still want to prevent anyone from launching mail.app without entering a password. I don't care if it's not 100% secure, just a basic extra level of password-prompt to prevent a quick "prying eye" from taking a peak at mail.app.