Re: compressing files on macintosh
Re: compressing files on macintosh
- Subject: Re: compressing files on macintosh
- From: Quinn <email@hidden>
- Date: Tue, 9 Jul 2002 10:35:18 +0100
At 12:13 +0530 9/7/02, sachin mogam wrote:
I want to transfer the files over the network, and as the resource fork gets
lost on the network. [...]
At 13:37 +0530 9/7/02, sachin mogam wrote:
Is there any way to compress a file programatically, using any API's
available on Mac?
Apple does not provide such an API. However, there are a number of
options available to you.
o You can use StuffIt Engine, a third party SDK that will archive,
compress, slice, dice, anything you need. Works on both 9 and X.
<
http://www.stuffit.com/sdk/index.html>
o You could use Apple events to puppet one of the various archiving
programs. Disk Copy might be a good target.
o On Mac OS X you could exec one of the various Unix command line
tools. The only problem with this is that the Unix tools generally
don't deal well with resource forks and metadata.
o You could write your own code to target one of the popular Mac OS
transfer formats (BinHex, MacBinary, AppleDouble). The file format
specifications are all public and relatively easy to implement.
There's also various code examples out there that should how to do
this.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.