[Pythonmac-SIG] [ann] ASDictionary, ASTranslate updates

Charles Turner vze26m98 at optonline.net
Wed Dec 22 20:07:45 CET 2010


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




More information about the Pythonmac-SIG mailing list