Вопрос

I want to create an apple script that opens terminal and summons this command : sudo killall coreaudiod

How is this possible?

Это было полезно?

Решение

do shell script "sudo killall coreaudiod" with administrator privileges

the user gets asked for the password then

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top