The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   OS Xperiences (http://hintsforums.macworld.com/forumdisplay.php?f=17)
-   -   Zip Archiving in Panther (http://hintsforums.macworld.com/showthread.php?t=16304)

DougAdams 10-23-2003 08:14 AM

Zip Archiving in Panther
 
Choosing to Create Archive in the Panther Finder conveniently creates a .zip archive. Just wondering:

Is Apple moving away from StuffIt for some reason? (I wouldn't mind saving a few bucks on "Deluxe" upgrades every few years)

Is zip better compression? Or is this mainly meant as a better way for Macs to communicate (and ingratiate) with Windows on a network?

(Amusing anecdote: I recently sent a Mac-.zip file to a Mac friend who, despite his years of computer experience, put off opening it due to his anxiety that it was somehow "Windows-tarnished". He's experienced, but a dumb-ass.)

Thoughts?

sbur 10-24-2003 02:47 PM

I'm not a Unix god by any stretch of the imagination, but .zip files have been in the gnu distributions for a long time. I think the reason for the .zip being generated is mostly because apple's system is now taking more advantage of the already-built in tools.

That is, it's more of an open source unix thing than an apple thing.

(at least that's my take.)

mclbruce 10-24-2003 06:47 PM

Re: Zip Archiving in Panther
 
Quote:

Originally posted by DougAdams
Thoughts?
Using Zip to archive files is not a good thing. Zip archives usually throw away resource forks of files. Maybe apple has done something clever with the zip archiving format for 10.3.
Then again, maybe not.

Oh, and by the way, we now have dead guys posting on MacOSXHints???

http://www.lostcarpark.com/news.php?item=14

frankko 10-24-2003 07:53 PM

Zip archives created by OS 10.3 contain extra folders with a bunch of files that start with . that contain the resource fork information.

Presumably, OSes that don't care about resource forks will ignore that extra stuff, while OS X will be able to reconstruct the resource forks.

Surprisingly (I'm sure it all depends), the extra information doesn't add too much to the zip file size (compared to the command line version of zip which strips resource forks).

mclbruce 10-25-2003 12:47 AM

Quote:

Originally posted by frankko
Presumably, OSes that don't care about resource forks will ignore that extra stuff, while OS X will be able to reconstruct the resource forks.

Surprisingly (I'm sure it all depends), the extra information doesn't add too much to the zip file size (compared to the command line version of zip which strips resource forks).
Resource forks are usually very small. so the minimal size difference makes sense. It will be interesting to see what happens when these new zip files get sent to Windows folks.

Craig R. Arko 10-25-2003 10:20 AM

I just tried it using SimpleText (100% resource fork) as a test victim.

Zipped it, sent it over the LAN to a PC, viewed it with WinZIP, seeing the (empty) data fork and the (full) resource fork, beginning with the '.'. Closed WinZIP.

Then copied the archive back to the Mac, unzipped it, double clicked SimpleText and up starts Classic, with SimpleText running fine.

Pretty schnazzy.

wayneyoung 10-25-2003 10:26 AM

I sent two zip files to my Windows machine on my local network. One was made from Mac executable and data files, and the other I made using Windows executable and data files.

The resource fork files were intact on the windows machine after unzipping there. I copied the Mac folder back to Panther over the LAN, and found the executables had been destroyed (not unexpected). The text file was OK and readable (as expected).

The Windows zip file extracted nicely and worked as expected. The resulting folder also contained resource fork files.

So if we send Panther created zip files to windows users they will have some extra files to delete.

wayneyoung 10-25-2003 10:43 AM

C A U T I O N ! ! ! ! !

I just used stuffit expander 7.0.3 on a Panther created zip file and expander destroyed it! I guess only Panther understands these new zip files. Perhaps someone else could verify, or check if expander 8 will work?

Craig R. Arko 10-25-2003 10:55 AM

Test 2 - created an empty HFS+ disk image, and copied some Classic applications to it. Zip archived the .dmg file (2.5 MB -> 540KB) and copied the .dmg.zip file to the PC.

Opened in WinZIP. Big Data fork, tiny resource fork. Extracted only the data fork as a .dmg file.

Copied this back to the Mac, double clicked and low and behold the disk image mounts properly, with the Classic apps wait to be used.


PS - Wayne, good catch on Stuffit there. That one will surely bite some people using pre-10.3 systems.

DougAdams 10-25-2003 11:23 AM

Re: Re: Zip Archiving in Panther
 
Quote:

Originally posted by DougAdams
Thoughts?
Quote:

Originally posted by mclbruce
Oh, and by the way, we now have dead guys posting on MacOSXHints???
Excuse me. I should have asked for deep thoughts.

Craig R. Arko 10-25-2003 11:29 AM

Quote:

Originally posted by wayneyoung
C A U T I O N ! ! ! ! !

I just used stuffit expander 7.0.3 on a Panther created zip file and expander destroyed it! I guess only Panther understands these new zip files. Perhaps someone else could verify, or check if expander 8 will work?
The Stuffit Expander 8.0 version also mangles the archive.

Also, the only versions of Expander that will run in OS 9 or earlier are 7.0.3 or lower. Be cautious who you send these zip archives to, or you may be surprised with the results.

yellow 10-25-2003 11:48 AM

Shouldn't that force Apple to produce a stand-alone app for (at least) Jaguar? Not everyone is going to move to Panther.

DougAdams 10-25-2003 11:49 AM

Quote:

Originally posted by Craig R. Arko
Be cautious who you send these zip archives to, or you may be surprised with the results.
Maybe Panther zips should just be used for archiving on one's own computer. Use Disk Utility or StuffIt for distribution.

mervTormel 10-25-2003 11:54 AM

avoid panther archiving until it is vetted
 
this is a potentially huge issue that needs some thorough testing.

for now, if one panther-archives, one should consider it unreliable.

testing here has revealed some other "archiving" issues regarding finder copy from one partition to another. developing...

Dietrick 10-25-2003 01:02 PM

Re: avoid panther archiving until it is vetted
 
Quote:

Originally posted by mervTormel
this is a potentially huge issue that needs some thorough testing.

for now, if one panther-archives, one should consider it unreliable.

testing here has revealed some other "archiving" issues regarding finder copy from one partition to another. developing...
Is this Zip archiving issue separate and unrelated to "Archive and install" choice when installing Panther?

Dave Dietrick

mervTormel 10-25-2003 01:18 PM

Re: Re: avoid panther archiving until it is vetted
 
Quote:

Originally posted by Dietrick
Is this Zip archiving issue separate and unrelated to "Archive and install" choice when installing Panther?

yes, a separate issue.

we are discussing the new contextual menu item "create archive..."

Dietrick 10-25-2003 01:24 PM

Re: Re: Re: avoid panther archiving until it is vetted
 
Quote:

Originally posted by mervTormel
yes, a separate issue.

we are discussing the new contextual menu item "create archive..."
Thank you,

Dave

mclbruce 10-25-2003 07:48 PM

Quote:

Originally posted by Craig R. Arko
Test 2 - created an empty HFS+ disk image, and copied some Classic applications to it. Zip archived the .dmg file (2.5 MB -> 540KB) and copied the .dmg.zip file to the PC.

Opened in WinZIP. Big Data fork, tiny resource fork. Extracted only the data fork as a .dmg file.

Copied this back to the Mac, double clicked and lo and behold the disk image mounts properly, with the Classic apps wait to be used.
My understanding is that .dmg files protect or hide the resource forks of files inside of them.

I believe you can archive a .dmg using zipit or dropzip or just about any compression tool and all of the resource forks of the files in the .dmg will still be preserved.

tswd 10-27-2003 05:24 AM

unzip?
 
I'm wondering how to unzip files created by zip archiving facilty of Panther. My default unzipper is StuffItExpander. So opening the zip file invokes SuffIt. Then there would be __MacOSX stuff which I assume the resource folk part of the original files.

Are there any ways to let Pahter to unzip? Or, am I missing something?

Thanks in advance.

Craig R. Arko 10-27-2003 05:57 AM

Take a .zip file, and do a 'Get Info' on it. Where it says 'Open With' select the easily identified app 'BOMArchiveHelper' as the one to use.

Click the 'Change All' button. That should do it.


All times are GMT -5. The time now is 06:44 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.