On Dec 22, 2010, at 2:12 AM, Adam Morris wrote:

> How to translate this applescript into appscript?:
> 
> do shell script "sudo rm /usr/bin/file" with administrator privileges
> 
> Thanks for your software, has.

I don't have the "with" solved, but it goes something like this:

>> import osax
>> 
>> sa = osax.OSAX()
>> 
>> print sa.do_shell_script("ls -l")

HTH, Charles


_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to