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 Jan 05, '10 01:01:55PM

I think you want something like this:

do shell script "..." user name theUser password thePW with administrator privileges
(I think that's the correct syntax)

This way you do not need to say sudo in your script; all commands in the script will be run with full admin priveleges.

[ Reply to This | # ]
Lock and unlock a Mac using Bluetooth detection
Authored by: puzzlebobble on Jan 05, '10 01:06:38PM

cool, I must have been typing at the same time as you. I'll give that way a go. thanks!



[ Reply to This | # ]