The "skipped scripting addition..." error is merely a warning, not a fatal error. It is informing you that it tried to load a particular scripting addition (osax), but rejected it because it doesn't meet system integrity (security) standards. The system will go on to try and execute the script normally without that osax, which in this case (and most cases) should work.
Osaxen are stored in '/Library/ScriptingAdditions' and '~/Library/ScriptingAdditions'. Look in those two folders for the offending osax — which in this case is obviously Adobe Unit Types.osax — and move or discard it. The warning will go away, and your scripts will still run correctly. Or just leave it there and ignore the warning on the off-chance that you might someday want to load and use the osax explicitly.