문제

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