Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Lock and unlock a Mac using Bluetooth detection' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Lock and unlock a Mac using Bluetooth detection
Authored by: everkleer80 on Dec 30, '09 06:34:18AM

I thought it sounded like a fishy security hole when I saw your script tries to set require password to wake to false while the computer is locked, so it makes sense and restores my sense of security that the computer would require a password.

Now as far as a solution to this, I know you can run shell scripts with admin (ie. sudo) privileges in AppleScripts, so I'm sure there must be a terminal command that will set this (I'll leave it to someone else to find and post back with the command). Running a shell script with admin privileges still requires the pw be passed by the script if you don't want to prompt the user for it, but rather than hardcoding the pw in your script, you could use the keychain (see my reply to mech14 above.)

Edited on Dec 30, '09 06:35:39AM by everkleer80

[ Reply to This | # ]