compress/decompress on OS X
Jan Schenkel
janschenkel at yahoo.com
Tue Nov 9 10:31:11 EST 2004
--- Cubist at aol.com wrote:
> Perhaps I'm missing something, but it seems to me
> that it should be
> possible to create a Rev-only compression utility
> which can handle any number of
> files, on any platform that Rev supports.
>
> Step one: Create a new stack.
> Step two: Do a binfile read of whichever file.
> Step three: Stick the binary data of that file
> into a custom property of
> your new stack.
> Step four: Repeat 2 and 3 as needed, until there
> are no more files to
> compress.
> Step five: Use gzip to compress the resulting
> stack.
>
> Can anyone think of a reason that this technique
> *wouldn't* work?
>
On a Mac, you'll also want to incolude the resource
fork ; which you can do by means of a "resfile:" read
of said file -- other than that, it seems the right
tactic.
Jan Schenkel.
=====
Join us at the European Revolution Conference
November 14-16, MALTA. ~ http://TechieTours.com/Rev/
=====
"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)
__________________________________
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com
More information about the use-livecode
mailing list