I\'ve created a helper app, which monitors iTunes and launches/terminates the main app.
The launching works perfectly. The only problem is that I\'m not allowed to t
Got it, I had to add a temporary entitlement exception:
<key>com.apple.security.temporary-exception.apple-events</key>
<array>
<string>mainAppBundleIdentifier</string>
</array>
If you place your apps in an Application Group you can send a signal to the main app to terminate itself.
The recommended way to IPC in 10.8 is using NSXPCConnection.
See the code at Sandboxing with NSXPCConnection