Compressing stacks - is it possible?

Tereza Snyder tereza at attainmentcompany.com
Thu Feb 21 22:44:01 EST 2002


on 02.21.02 08:11PM, Scott Rossi wrote:

> FWIW, one thing I've done is to compress sounds, import the compressed data
> into a custom property in a stack, and later write the sounds to the drive
> and decompress them for playback.  I assume the same will work fine with
> stacks.


Are you saying I can script

set the MyCustomProperty of stack "mystack" to stack "stackToCompress" ?

I just get "source is not a container".

I see that I could write the stack to disk, then read it as a binfile,
compress it, then write the compressed data out again. To reconstitute it, I
guess I'd have to read the compressed file as a data, decompress it as a
data, write it out as data again, then open the file as a stack.

I was hoping there would be a way to get MetaCard to treat a stack in memory
(not a file) as a lump of data to compress.

I have about 1000 small stacks to put on a CD. I guess it won't kill me to
have the stack-indexer-and-writer-outer script read-write-read-write each
stack to get them onto the CD when I prepare it for distribution, but I
don't like having to read-write-read stacks to open them for the end user.

So, no one knows a way to coerce MetaCard to treat a stack in memory as
text?

ever hopeful,

tereza


+ Tereza Snyder 
+ Senior Software Developer
+ Attainment Company, Inc.
+ <www.attainmentcompany.com>
+ 800.327.4269




More information about the metacard mailing list