[Pythonmac-SIG] Appscript/administrator privileges

Bob Ippolito bob at redivi.com
Sat Nov 27 11:38:53 CET 2004


On Nov 27, 2004, at 5:33 AM, has wrote:

> Kevin Walzer wrote:
>
>> Does appscript support anything analogous to AppleScript's ability to
>> execute a command with administrator privileges (hooks into
>> Authorization Services)? Couldn't find anything in the documentation
>> about that. Of course, with Bob's authorization services wrapper,
>> perhaps this isn't even necessary.
>
> Can you give an example?

(from one of Kevin's posts on the darwinports list)

--
set theLauncher to "sudo -b 
/Applications/DarwinPorts/TkDarwinPorts.app/Contents/MacOS/Wish\\ 
Shell"

do shell script theLauncher with administrator privileges
--

-bob



More information about the Pythonmac-SIG mailing list