I want to execute a shell command in an Applescript application, but this command asks for a user confirmation ie: "Do you want to proceed with this operation and y/n?" I want the answer to be yes, could someone give me an example of how to do this?
-
If your script reads from stdin, you should be able to run "yes | yourscript.sh"Gereon– Gereon2019-01-20 20:14:31 +00:00Commented Jan 20, 2019 at 20:14
-
Thanks, @Gereon,working like a charm!TheOnlyOneHere– TheOnlyOneHere2019-01-20 20:21:23 +00:00Commented Jan 20, 2019 at 20:21
Add a comment
|