That's easy. It optimizes your HyperCard scripts. It (1) replaces for example card with cd (that's the optimization for size) and (2) it replaces for example "the clickLoc" with "clickLoc()" (that's the optimization for speed). But don't expect that your stack gets thousands of Kbytes smaller or works thousands % faster; if you want to know how much smaller/faster your stack may be after the optimization have a look at the "How does Optimize Scripts work?" section.
How do I use Optimize scripts?
Open Optimize scripts, select the objects of the stack which shall be optimized, select whether it shall be optimized for size or for speed or for both. Then just click on the Optimize script button. Select your stack in the open file dialog box which will be shown and hit the "Open" button. That's it. If you want to stop the optimization while it's in progress press command + ".". Optimize scripts won't stop immediately, but it will stop. It just takes a few seconds. That's a HyperCard limitation. Maybe it will be fixed in HyperCard 3.0.... :-)
Important:
You should check your answer and ask dialogs if their text is still correct after the optimization.
Tip:
Make a copy of the stack you want to optimize, copy the original stack on a floppy disk and optimize the copy of your stack. If you later find an error you can try finding it in the original stack. Optimize scripts doesn't improve the readability of your scripts (hey, you can't have scripts which are easy to read, fast and small. :-[) so it's harder work to find the error in the optimized stack than in the "original" stack. Why I made this stack? My HD is always to samll and this is one possibility to save disk space...
How does Optimize scripts work?
Optimization for Size:
• It replaces all cards with cds, all characters with chars, etc. pp.
• It deletes all of your comments.
• It joins together all lines with line breaks (¬).
• It deletes empty lines.
• It shortens on xxxxKey.
• It replaces "choose toolName tool" with "choose tool toolNumber". That's smaller and faster.
• It replaces & quote & with “.
• Replaces "go card cardName" and "go card number cardNumber" with "go cd id cardID". That's smaller and (in
stacks with many cards) your stacks get much faster.
Optimization for speed:
• It replaces all functions (e.g.: "the clickLoc") with their faster equivalents (e.g.: "clickLoc()"; OK, that is also
smaller but that's not the primary issue). The selectedxxxxx functions, excluding the selectedField function,
are not optimized. I'm not lazy, it's just very tricks to program such a thing....:-)
What do I need for Optimize scripts?
Optimize Scripts is compatible with HyperCard 2.3 and higher.
!!Attention!!
Optimize scripts is shareware. You pay me 5 US $. And what do I get therefore? You will receive free updates if you've got access to the Internet (I'm not glad about this, but to send an update to a person, say in the USA, via postal mail would be MUCH to expensive!! :-[). And above all, and that's the most important thing, you show me that there are people who use and like my program. If these people aren't there....... :-( Please see the "How to register" document for more information.
Please support shareware. I could write a XCMD which checks the registration code, so that you can't "register" Optimize scripts yourself so easily anymore. But I don't want to do that. I trust in you! :-)
How to contact me
If you have any comments, questions, bug reports, etc. - send them to me!
Postal mail: Daniel Schmidt
Am Zollstock 19
35392 Giessen
Germany
Email: jupiter@kagi.com
Putting Optimize scripts on CD-ROMs, etc.
If you want put it on CDs, give it away to your friends, etc. do it but only the original unregistered version (consisting of the Optimize scripts stack, the three Read mes and the Register application)!
Disclaimer
I will NOT pay any fees to you if this software damages your hardware or software!!