Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

How is this possible?

like image 846
NLed Avatar asked Sep 30 '13 18:09

NLed


1 Answers

do shell script "sudo killall coreaudiod" with administrator privileges

the user gets asked for the password then

like image 101
Daij-Djan Avatar answered Mar 07 '23 16:03

Daij-Djan