Apple Scripts and Maximum Lengths

I have a few scripts which could be quite long, and when I try to paste them (as I have typed them into BBEdit for easy search/replace) into a script I get the error

“Could not insert text because the text would be longer than its maximum possible length”

Is there a character, or line limit to an Apple Script, and what is the best way to ‘get around’ it (IOW string several scripts together.)

Right now I have been using several 'Drop Scripts" but it seems inefficient to me :slight_smile:

If I recall correctly, Script Editor has a 32K limit. You might want to check out Smile (freeware) or Script Debugger (commercial, a great investment for serious scripters!).

– Rob

nods That’s what I thought it might be…

Thanks :slight_smile: I’ll look into those.