OS X have a nice feature such as Accessibility API, which allow to control some system elements and another applications from your app code. But it stops working after turning on Sandbox. To submit an app to the store is mandatory to turn on sandboxing.
That`s what Apple say:
With App Sandbox, you can and should enable your app for accessibility, as described in this document. However, you cannot sandbox an assistive app such as a screen reader, and you cannot sandbox an app that controls another app.
But App Store has a few applications that use Accessibility API:
- Cinch – resize Windows
- BetterSnapTool - same
- PopClip – gets the selected text
So it means that it is possible to use Sandbox/Accessibility API/App Store together, but how?
See Question&Answers more detail:os