问题
I want to create an apple script that opens terminal and summons this command : sudo killall coreaudiod
How is this possible?
回答1:
do shell script "sudo killall coreaudiod" with administrator privileges
the user gets asked for the password then
来源:https://stackoverflow.com/questions/19101518/how-to-create-an-apple-script-that-runs-a-terminal-command