Rewriting Quark 4 script in OSX

I am trying to convert some old os9 scripts to OSX. The problem I have is that when I open the scripts in script editor it changes them. startup disk turns to «class sdsk» and folder turns to «class cfol» and it gives an error. If I change them back it doesn’t work and gives me ‘Expected end of line but found “.’ it does it at every folder and startup disk in the script.
example:

tell application “Finder”
set FileCount to number of items in folder “templatein” of folder “Delivery” of startup disk as integer

is changed to:

tell application “Finder”
set FileCount to number of items in «class cfol» “templatein” of «class cfol» “Delivery” of «class sdsk» as integer

I really need to get this script to work ASAP, unfortunatly I can’t upgrade Quark because our clients (200+ of them) use v3 and v4 and won’t upgrade. We just got a G5 and it won’t work in OS 9 so I’m in a bind and have to get it working quickly. If anyone knows what the problem is please let me know.