Go Back   The macosxhints Forums > Working with OS X > OS Xperiences



Reply
 
Thread Tools Rating: Thread Rating: 32 votes, 5.00 average. Display Modes
Old 10-23-2003, 08:14 AM   #1
DougAdams
Triple-A Player
 
Join Date: Jan 2002
Posts: 67
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?
__________________
Doug
--
dougscripts.com
DougAdams is offline   Reply With Quote
Old 10-24-2003, 02:47 PM   #2
sbur
Major Leaguer
 
Join Date: Apr 2002
Location: Saint Peter, MN
Posts: 330
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.)
sbur is offline   Reply With Quote
Old 10-24-2003, 06:47 PM   #3
mclbruce
Hall of Famer
 
Join Date: Mar 2002
Posts: 3,878
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
mclbruce is offline   Reply With Quote
Old 10-24-2003, 07:53 PM   #4
frankko
All Star
 
Join Date: Jan 2002
Location: New York, NY
Posts: 587
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).
frankko is offline   Reply With Quote
Old 10-25-2003, 12:47 AM   #5
mclbruce
Hall of Famer
 
Join Date: Mar 2002
Posts: 3,878
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.
mclbruce is offline   Reply With Quote
Old 10-25-2003, 10:20 AM   #6
Craig R. Arko
Site Admin
 
Join Date: Dec 2001
Location: Minneapolis, MN
Posts: 3,988
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.
Craig R. Arko is offline   Reply With Quote
Old 10-25-2003, 10:26 AM   #7
wayneyoung
Triple-A Player
 
Join Date: Jan 2002
Location: Colorado Springs, CO
Posts: 216
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 is offline   Reply With Quote
Old 10-25-2003, 10:43 AM   #8
wayneyoung
Triple-A Player
 
Join Date: Jan 2002
Location: Colorado Springs, CO
Posts: 216
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?
wayneyoung is offline   Reply With Quote
Old 10-25-2003, 10:55 AM   #9
Craig R. Arko
Site Admin
 
Join Date: Dec 2001
Location: Minneapolis, MN
Posts: 3,988
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.
Craig R. Arko is offline   Reply With Quote
Old 10-25-2003, 11:23 AM   #10
DougAdams
Triple-A Player
 
Join Date: Jan 2002
Posts: 67
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.
__________________
Doug
--
dougscripts.com
DougAdams is offline   Reply With Quote
Old 10-25-2003, 11:29 AM   #11
Craig R. Arko
Site Admin
 
Join Date: Dec 2001
Location: Minneapolis, MN
Posts: 3,988
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.
Craig R. Arko is offline   Reply With Quote
Old 10-25-2003, 11:48 AM   #12
yellow
Moderator
 
Join Date: Jan 2002
Posts: 10,677
Shouldn't that force Apple to produce a stand-alone app for (at least) Jaguar? Not everyone is going to move to Panther.
yellow is offline   Reply With Quote
Old 10-25-2003, 11:49 AM   #13
DougAdams
Triple-A Player
 
Join Date: Jan 2002
Posts: 67
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.
__________________
Doug
--
dougscripts.com
DougAdams is offline   Reply With Quote
Old 10-25-2003, 11:54 AM   #14
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
Exclamation 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...
mervTormel is offline   Reply With Quote
Old 10-25-2003, 01:02 PM   #15
Dietrick
Prospect
 
Join Date: Sep 2003
Posts: 4
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
Dietrick is offline   Reply With Quote
Old 10-25-2003, 01:18 PM   #16
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
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..."
mervTormel is offline   Reply With Quote
Old 10-25-2003, 01:24 PM   #17
Dietrick
Prospect
 
Join Date: Sep 2003
Posts: 4
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
Dietrick is offline   Reply With Quote
Old 10-25-2003, 07:48 PM   #18
mclbruce
Hall of Famer
 
Join Date: Mar 2002
Posts: 3,878
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.
mclbruce is offline   Reply With Quote
Old 10-27-2003, 05:24 AM   #19
tswd
Prospect
 
Join Date: Oct 2003
Location: Japan
Posts: 9
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.
tswd is offline   Reply With Quote
Old 10-27-2003, 05:57 AM   #20
Craig R. Arko
Site Admin
 
Join Date: Dec 2001
Location: Minneapolis, MN
Posts: 3,988
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.
Craig R. Arko is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 05:48 AM.


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.