Using Applescript to sudo root in the terminal app.

Hello All,

I am newbie to Applescript and I was wondering how to su to root in the terminal app. The password is the issue. The Applescript has an issue with responding to the password requested. The system just throws up a dialog about the admin practices. Can anyone direct me in the right direction?

Thanks,
Macnut

hi mac,

typically what you really want to do is ‘with administrator privileges’, such as:


do shell script "/sbin/ifconfig" with administrator privileges

there may be other ways to do this, but you may want to post more about your script if the above syntax does not work for you.