BBEdit bundles a set of command line tools that can be used to invoke the app from the command line. When invoking these in a fresh rootshell install, they complain:
You must allow the application which is running `bbedit` to send events to the BBEdit application.
Please make appropriate changes in your Security & Privacy system preferences,
or contact your terminal/IDE application's developer for assistance.
bbedit: error: -1743
Based on bug reports for other terminal emulators (1, 2) it seems the launching process (rootshell in this case) needs to have the com.apple.security.automation.apple-events entitlement.
As a workaround, running
osascript -e 'tell application "BBEdit" to get properties of window 1'
will trigger the macOS prompt to authorise sending events on a per-app basis (illustrated here with Safari because I'd already used it on BBEdit)
Despite the BBEdit error message, there doesn't appear to be a way to manually add apps to the list (as of Sequoia, located in System Settings > Privacy & Security > Automation).
BBEdit bundles a set of command line tools that can be used to invoke the app from the command line. When invoking these in a fresh rootshell install, they complain:
Based on bug reports for other terminal emulators (1, 2) it seems the launching process (rootshell in this case) needs to have the
com.apple.security.automation.apple-eventsentitlement.As a workaround, running
osascript -e 'tell application "BBEdit" to get properties of window 1'will trigger the macOS prompt to authorise sending events on a per-app basis (illustrated here with Safari because I'd already used it on BBEdit)
Despite the BBEdit error message, there doesn't appear to be a way to manually add apps to the list (as of Sequoia, located in System Settings > Privacy & Security > Automation).