osaxen removal/restoration script

One of the problems with osaxen placed in ~/Library/Scripting Additions/, /Library/Scripting Additions/, or /System/Library/Scripting Additions/ is that they are always active. This means that in the attempt to write and debug a plain vanilla AppleScript (PVAS, or PeeVas in my mind) you may inadvertently be using a term from one of the osaxen, or trickier yet, a coercion from one of them. You have no way of knowing that, but your script will nonetheless break on someone else’s machine if they don’t have that osax. Further, you have no way of knowing if a failure using one of them is caused by the presence of another, since they aren’t guaranteed not to conflict.

Bearing all this in mind, I just started a script to zip mine in place (rather than move them), and using a script by Kai, unzipping them and removing the zipped version (which isn’t removed by the unzip) - a kind of osax Conflict Catcher. As I begin, however, it occurs to me that I can’t have been the first to worry about this, so there certainly must exist a script for doing this in this community.

Care to share or comment?

Various attempts along the time:

http://scriptbuilders.net/files/osaxmanager1.0.html
http://userpages.centralnet.ch/danva/go_intro.html (old)
http://www.tucows.com/preview/238618 (old)
And various more old scripts (as R23’s “Osax Manager”)…

The only issue is certain scripting additions which reside in memory, and won’t accept deletion. Also, you could find some times certain issues with hidden coercions and terminology conflicts in your scripting environment (appart from osaxen), specially if you use Smile…

Some times, I think the best option would be piping your script thru “osascript” (after removing all third-party scripting additions and quitting running script editors and “suspicious” apps)…

Appart from this, I’ve been working recently in a sort of “dependencies checker”, but it won’t detect coercions nor classes… If I find the time, I’ll take a look and see if this could be added…

Thanks, jj - I thought it might be complex.