0

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?

2
  • If your script reads from stdin, you should be able to run "yes | yourscript.sh" Commented Jan 20, 2019 at 20:14
  • Thanks, @Gereon,working like a charm! Commented Jan 20, 2019 at 20:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.