Stack Overflow in AppleScript

Hi fellow scripters,
I am running an applescript that reads in metadata from Cumulus and then writes it into a text file. After reading X number of records, I get an error “Stack Overflow”. Is there anyway, I could avoid this or maybe bypass it to keep my script running?

Thanks for all help!

Technically, you can’t avoid a stack overflow. Are you running OS 9? Most probably the metadata found at the offending record is too large for the script?
We have an entry about this issue in the FAQ. I don’t know if it helps, bur it’s worth a quick look…