12

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

How is this possible?

Kara
  • 6,115
  • 16
  • 50
  • 57
NLed
  • 1,845
  • 14
  • 39
  • 68

1 Answers1

24

do shell script "sudo killall coreaudiod" with administrator privileges

the user gets asked for the password then

Daij-Djan
  • 49,552
  • 17
  • 113
  • 135