Re: store script bloats saved files?
Re: store script bloats saved files?
- Subject: Re: store script bloats saved files?
- From: has <email@hidden>
- Date: Wed, 24 Apr 2002 19:08:48 +0100
Malcolm Fitzgerald wrote:
>
I've been using Smile to test and
>
store the script objects and they have been getting big.
Could be an issue with the way Smile operates (persistent values, etc).
>
I started to
>
get memory errors and table overflows that prevented me from storing
>
the scripts, even though it was possible to compile the scripts.
Table overflows - agh. Did I mention I have this on one of my applets? I
try to clear my properties before saving, but AS's garbage collector
doesn't clean up fast enough and I'm left with a bloated applet. Next time
it runs, it errors with a table overflow when trying to quit. Damned if I
try, damned if I don't. Grrrr.
>
These scripts were much larger than the original code.
Don't forget that persistent data in globals and properties will remain
too. That's probably not the problem here I know, just mentioning it for
clarity.
BTW, you can sometimes glean good clues from cracking open your script in
Resedit. The script itself may be compiled to bytecode, but comments and
identifiers are still readable as plain English.
HTH
has
--
http://www.barple.connectfree.co.uk/ -- The Little Page of Beta AppleScripts
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.