Error -25390

Anyone familar with the error -25390? Best that I can guess is that it deals with the installed scripting addition and/or AppleEvent Server. When I got the error and went to identify the problem in the script, all the calls to scripting additions or apple events where in the scrambled <> type. This should read beep 3.
I would like to figure out how to fix this problem, since it is occuring on a script and computer that has been running with no changes to it for 6 months!

Found the cause:
Someone incorrectly saved a text file as a TIFF file. This was showing up as a 1k File and when trying to open the file, the script would error. Deleting the file fixed the problem and the scripted processed down the line.

Complicated problem:
I don’t know what has happened to the machine but now it will not compile any script.
No matter the script I get this error:
-2741 Expected but found .
All Apple Event calls look like so - <>
No matter if a new script or an old one.
Did something get changed?

I will invent the wheel: seems a great applescript corruption and OSACompile is dead.
Did you tried re-installing or upgrading AS? What OS/AS are you running in such machine?

Short of reinstalling the operating System I have trashed Applescript 1.8, all preferances for Applescript, Script Debugger, PhotoShop and PhotoScripter. Turned off even more extensions. Reset the pram. Used TechTool Pro (it caught some icon issues, but problems persist). The OSACompile I know nothing of but I will look for it and try trashing it and reinstalling it.
Thanks for the tip!
Magenta iMac 400 w/ 256mem OS 9.2.2 current on all updates and firmware
Applescript 1.8
Photoshop 5.5
Photoscripter ?

You can try AS 1.8.3: http://docs.info.apple.com/article.html?artnum=120128
I also keep a cool regard of AS 1.8.2b3. I think you can still pick a copy here: http://www.digitalscientific.co.uk/pages/support/FAQs/Compatibility.html