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