Because of a missing replacement of deprecated temporary exceptions for the scripting bridge, we need a technical solution for the professional requirements, that is accepted for publication in the app store. See also this thread: https://forums.developer.apple.com/thread/111287
A suggested solution in the linked thread is to split up the app. We could provide core features in our app for the store and in addition a helper app, that the users can download form outside the store. The idea is, that the store app would be scriptable. Instead of the store app a helper helper app would respond to a shortcut in a service provider, capture the user's context with scripting bridge and forward the result to the scriptable main store app.
I could find a good tutorial with an example project in Github to make an app scriptable. I'm also familiar with service provider implementation, but not familar with helper apps. It should be an app, that has no user interface and would be startet by the store app after the helper app has been downloaded an installed. I think the correct approach is an XPCServer. Does someone know a good tutorial or example project?
Edit: I just reviewed the code template of Xcode. A scriptable app seems not necessary with XPCService and the process flow would be different. The main app would be triggered by a shortcut like today. This main app would ask the XPCService to capture the user's context with the scripting bridge and would receive the artifact to proceed with the data analysis process for retrieving contextual content.
I couldn't find instruction how to install a helper tool and start the XPC service from the main app.