I spent some time trying to figure something out like this. After a lot of time I realizing that there isnt any real efficient way to stop the borrowing of code without writting a dll. So I just started adding a few lines to the init of a dialog or something that would check to be sure it was apart of the script or the file would be unloaded and erased. But I only have that on two things, the mp3 player and a game query script which I spent a ton of time learning about and making. I figure if they are willing to pick it apart and remove the lines, they can have it. Besides there are a lot of similar scripts out there, I just like my layout better then anyone elses.
If you do find something that is fast, I would be interested in knowing for a few things that im working on.