Hi eskimo, thank you very much for your information.
It helps to receive a more clear picture about all this topic, but at the end my problem is still here...
So i can explain what i made:
- i created a Developper ID certificate.
- i exported the script as an application and signed it with the certificate
- i made the whole notarization process like describe in (https://stackoverflow.com/questions/69354021/how-do-i-go-about-code-signing-a-macos-application) and it worked without any error.
But after that i receive still the same error. "Error 1743 (Not authorized to send Apple events...)"
After that i found another developer (from ALS Page Director) and he took the script and signed it with his certificate. the resulting application works. when launching it requests the authorization to control the other application. after allowing this it works.
This is now for me confusing.
But this is not the end of the whole confusion:
When i try to export the script by another machine (also 10.14.6!!!) then i'm not able to sign the application. i cannot select the installed certificate...
And at last to mention when i installed the script (as a script) in the menu you wrote above (Script Editor > Preferences > General) it doesnt work and in the Preferences > Security & Privacy > Privacy > Automation > Script Menu i have only the following picture:
This all is really confusing. i have the evidence that it is possible but but on my system I am stuck on all paths.
If you have an idea, you can't imagine how happy i would be.