size limit of the script editor [run-only]

dear apple friends ,

i am using the script editor Version 2.1.1 (81) and apple script AppleScript 1.10.6 . is there any size limit for the script editor ? the script i have written having the size of 640 kb. when i am changing this script with slight modifications and saving the script apple + s , it is saved and i can reopen the script and edit it again . but when i add a subroutine the size of the script changes to 680 kb . when i tried to open the script (double click) it gives the following error :

Unable to read the file because the script is not editable (it was saved as run-only).

is there any size limit for the script editor ?

please help me in this case , if there is any size limit i can look for another solution .

best regards

krishna

I haven’t come across a size limit, but that doesn’t mean there isn’t one. I think your problem is different though as indicated by the “run-only” statement. When you save your code as an application there are a few check boxes in the “option” portion of the save dialog window. Run-only means: make the script so that it can only be run, i.e. you cannot open and edit the contents of the script. This seems to be your problem, so when saving your script just un-check that box.

You can’t open it because it was saved as run only. I’ve never encountered a size limit. Run only AppleScripts are just that – there is no recovery method so before saving a script as run only, you’d better keep a compiled or text copy of it.