How to approve a lot of executables with unrecognized developers? So I've downloaded a program by a developer that macOS doesn't recognize, and when I want to run it I get the usual &quot;we don't know who wrote it, would you like to trash it in one click?&quot; warning. This is easy to bypass.
Instead of coming as one executable it's actually ~120 separate executables that the main one will call, or maybe they can call each other, and my computer will interrupt and quit the program every time it wants to call a new one. I would just grind through them if I thought that the program would call every one every run and I could clean them all up at once, but my guess is it's just going to call a handful at a time so I'll never know if I've gotten them all.
I ran ls -lha on the directory and they nearly all have the same output:
-rwxr-xr-x@   1 &lt;user&gt;  staff    92M Oct 29  2019 &lt;name_of_exe&gt;

a few are different, but there's no difference between the ones I've already approved and the ones I haven't.
After signing them with the command find . -name &quot;*&quot; -exec codesign --force -s - {} \;, the error message changes and it says:

Unable to open &quot;&lt;one_of_the_binaries&gt;&quot; because Apple could not check for malicious software.
This software needs to be updated. Contact the software developer for more information.
Firefox downloaded this file &lt;time&gt; from &lt;site&gt;.

After I go to the Privacy &amp; Security menu to approve it, the next time I run the program I the the same warning, but now with the option to run anyway. But then when the next new executable is called, it will do the same thing with that one.
Is there some way I can quickely approve all of them at once?
MacOS 11.2.2.
You could ad-hoc code sign the applications using a shell script or another tool like Automator. The approximate command for each application is:
codesign --force -s - &lt;/path/to/application&gt;

Please see the linked question for what this does and how the command is constructed.