Error “Not authorised to send Apple events to Terminal.” when starting Maxima I downloaded Maxima and installed on Mac OS Mojave (10.14.6).
I followed instructions and remove the quanrantine attributes&thinsp;:

$ sudo xattr -d -r com.apple.quarantine /Applications/Maxima.app


but then I get error “Not authorised to send Apple events to Terminal.”&thinsp;:



The reason is Maxima.app try to launch UI (Maxima, Rmaxima, or wxMaxima) through Terminal.app.
This error is known, but I did not find any answer, for instance the topic “How fix macOS Catalina error “not authorized to send apple events to terminal”?” is unanswered.

A solution is given (for a different but close problem) in “Mojave: not authorized to send Apple events”&thinsp;: allowing Terminal to the Full Disk Access in Preferences &gt; Security &amp; Privacy &gt; Privacy &gt; Full Disk Access.
Howewer, Maxima.app need to launch Terminal.app, so I think I have to authorise Maxima.app to control Terminal.app in Preferences &gt; Security &amp; Privacy &gt; Privacy &gt; Automation, but I can not add Maxima.app (there is no “+” button&thinsp;!)&thinsp;:



A related stackoverflow topic already exists : macOS Mojave, Automator “Not authorized to send Apple events to System Events.”, but no answers solves my problem.
I ran into the same issue, tried the things in the link.  Eventually this is what worked for me:

Open Terminal.app
Navigate to the `Maxima.app/contents/MacOS/ folder:
% cd /Applications/Maxima.app/Contents/MacOS


Run the applet binary:
% ./applet


This finally triggered the pop-up requesting access.  Click to allow access.