NLed
NLed

Reputation: 1865

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?

Upvotes: 12

Views: 22336

Answers (1)

Daij-Djan
Daij-Djan

Reputation: 50089

do shell script "sudo killall coreaudiod" with administrator privileges

the user gets asked for the password then

Upvotes: 24

Related Questions