Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'zip/gzip...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
zip/gzip...
Authored by: mazucka on Nov 05, '01 10:42:41AM

Mr. Sinclair's comment says 'quick and dirty script to gzip pdfs'. Bear in mind that the 'zip' command produces zip files while the 'gzip' commend produces gzip files. The two are different, though most of the popular decompression/etraction utilities can manage either format.

My questions is will this deal with files that have resource forks?



[ Reply to This | # ]
Why not use DropZip with open?
Authored by: houchin on Nov 05, '01 11:08:29AM

zip -h will tell you that this is the original old zip app that's been around on Unix systems
for years. In fact, this particular version was last modified in 1996. I used to use this
on Unix system, and my recollection is that it didn't even maintain any directory structure.

Instead of using this, why don't you just use DropZip from the terminal. Just create an alias in /usr/share/init/tcsh/aliases.mine (so all users can use it):
alias dropzip "open -a '/Applications/Utilities/StuffIt Deluxe 6.0/StuffIt Drag and Drop/DropZip'"

You could also use gzip, but you might have some interoperability problems with Windows users, and you would also have to use tar to archive everything into a single file (gzip only compresses single files).



[ Reply to This | # ]
zip/gzip...
Authored by: Louis on Nov 05, '01 11:15:28AM

why do we have to use pico?

i now use bbedit 6.5 with its unix line tool then i save with unix line endings.

is this ok to do as well?

thanks



[ Reply to This | # ]
zip/gzip...
Authored by: tomsinclair on Nov 05, '01 04:05:21PM

The script was originally designed to use gzip, but I found my students couldn't
open the gzipped files. I switched to zip and forgot to change the comment.

Sorry about the confusion.

(It did say 'quick and dirty', though.)



[ Reply to This | # ]