My macOS app was rejected. The reason:
My app should run shell command in the Terminal, reveal a folder in the Finder and open a file in the TextEdit.The following temporary entitlement exceptions requested for this app are not appropriate and will not be granted:
com.apple.security.temporary-exception.apple-events com.apple.terminal
com.apple.security.temporary-exception.apple-events com.apple.finder
We understand this may prevent the app from being approved for the Mac App Store. We encourage you to investigate other ways of implementing the desired functionality.
I achieved with functionality with executing NSAppleScript.
I have already added
App Sandbox entitlements: YES
entitlement com.apple.security.files.user-selected.read-only: 1
entitlements com.apple.security.temporary-exception.apple-events (mentioned above)
NSAppleEventsUsageDescription
I searched for any documentation but didn't find anything.
What should I do to pass a review?
Or is there any other way to achieve desired functionality?
Thx