If I call shell commands in a GUI-wrapped Mac app, will it be rejected from the Mac App Store?
For example, I want to call osascript and change the audio output volume.
Thanks for any pointers.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Generally, they will not be rejected, if they meet the requirements of the Mac App Store Review Guidelines.
Reading this document there are no concerns with shell-script execution. Just look at point 2.26 to not run your code without asking the user for.
Remember that your app has to be sandboxed and should not interact with other applications, by directly calling or manipulating them. Shell scripts however play a different role. Your script has to be included in the applications bundle, to meet guideline requirements.
Do some great stuff with it!