One of the functionality in my macOS app needs to run an applescript. The required script file is in the app bundle. On first run, the user is prompted to select the "ApplicationScripts" folder so that the app copies the script file from bundle and to the App Scripts folder. From there on the app can run the script, upon user action.
The app was rejected quoting review quidelines -
2.4.5(ii) - Your app requires or is designed to work with helper scripts which is an optional install.
2.4.5(viii) - Your app installs code in shared locations. Specifically, the app installs helper scripts.
I don't clearly understand the reson for rejection and also is there a prover way to run scripts without violating review guidelines?