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

1

12

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

How is this possible?

Bogan answered 30/9, 2013 at 18:46 Comment(0)
L
24

do shell script "sudo killall coreaudiod" with administrator privileges

the user gets asked for the password then

Leggat answered 30/9, 2013 at 19:3 Comment(3)
Create a Run AppleScript or Run Shell Script ?Bogan
automator could run the shell script directly though ;)Leggat
Can you check this please, it's related to your answer apple.stackexchange.com/questions/105150/…Bogan

© 2022 - 2024 — McMap. All rights reserved.