How to create an Apple Script that runs a Terminal command?

别等时光非礼了梦想. 提交于 2019-12-21 03:43:36

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!