Re: store script bloats saved files?
Re: store script bloats saved files?
- Subject: Re: store script bloats saved files?
- From: Arthur J Knapp <email@hidden>
- Date: Wed, 24 Apr 2002 13:29:20 -0400
>
Date: Wed, 24 Apr 2002 23:41:49 +1000
>
From: Malcolm Fitzgerald <email@hidden>
>
Subject: Re: store script bloats saved files?
>
stored script stored script
>
Name text Smile Script Editor
>
>
FileLib (Serge) 12K 788K 28K
>
PrefsLib 20K 324K 16K
>
AstidLib 24K 244K 16K
>
WebLib 44K 364K 32K
>
WodaLib 56K 388K 128K <-- bigger
>
because it calls in all above
>
in fact, I've just noticed that saving the code as text from Script
>
Editor produces a much smaller version of the text file too. In the
>
case of WebLib it went from 40K (44K on disk) down to 7K (12K on
>
disk).
The third-party editors store additional information that allows
for more powerful editing and debugging of scripts. This should be
seen as a feature, not a problem. Typically, I use the following
system of file management:
I keep a version of all of my "final" scripts in text format.
This has tremendous advantages, like being able to search all
of my scripts for specific things using BBEdit, being able to
open a script even when the "tell" targeted application has been
lost, etc.
When I go into edit/debug mode, I keep a working version of my
script in Script Debugger's "debugging" format. The file is
typically much larger than I ultimately want it to be, but for
debugging purposes, it is not a problem.
When I have finalized and fully debugged a script, I save it
as "read-only". This creates a file that takes up as little
disk space as possible, (and usually the difference between
how the third-party editors create a read-only version is
minimal). When problems comeup later, I go back to the text
or "debugging" versions to perform updates.
script "FileGuy"
| Text | Compiled... | ...as r/o | Applet... | ...as r/o
---|------------|-------------|-----------|-------------|----------
SE | 12k (5412) | 16k (14520) | 4k (3350) | 20k (16394) | 8k (5174)
SD | 12k (5433) | 20k (19657) | 4k (3268) | 24k (21728) | 8k (5347)
{ Arthur J. Knapp, of <
http://www.STELLARViSIONs.com>
<
mailto:email@hidden>
try
<
http://www.appleklub.cz/~koudelka/home.shtml>
on error number -128
end try
}
_______________________________________________
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.