XYMer's Home away from Home

When http://bbs.xlr8yourmac.com is down (i.e. always)
Privacy Policy
It is currently Mon Jun 17, 2019 3:15 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Tue Sep 25, 2018 3:15 am 
Offline
User avatar

Joined: Fri Dec 10, 2010 9:41 am
Posts: 809
Location: Halfway between New York City and Atlantic City
Remember the archive utility StuffIt? I think I was one of the first to buy it when it was still being distributed as shareware by its developer, Raymond Lau (before Aladdin Systems). With StuffIt, you could create a compressed archive and later add files to it.

But now that OS X offers the ability to create zip archives, is there a way to add files to those? (It's become tediously difficult to find answers to specific questions via the search engines over the past year or so.)

_________________
_____________________
MacMini 2.5 GHz Intel Core i5, 16 GB RAM, OS 10.12.6


Top
 Profile  
 
PostPosted: Tue Sep 25, 2018 5:01 am 
Offline
Benevolent Dictator
User avatar

Joined: Mon Apr 21, 2008 2:03 am
Posts: 16090
You can use Terminal...
Quote:
wrldwzrd89
macrumors G5
wrldwzrd89

man zip
...at the shell prompt explains all the options. Concisely:
To add a few files to an existing zip archive:

zip /path/to/zipfile.zip file1 file2 file3
To add an entire directory full of files, along with all subdirectories it contains:

cd /path/to/directory/to/add
zip -r /path/to/zipfile.zip *
Careful with that second command - it'll add EVERYTHING, even those pesky .DS_Store files. You probably don't want those, so, here's how to fix that:

zip -d /path/to/zipfile.zip *.DS_Store

https://forums.macrumors.com/threads/ho ... le.683350/


Or possibly BetterZip...

https://macitbetter.com


Top
 Profile  
 
PostPosted: Tue Sep 25, 2018 9:50 am 
Offline
User avatar

Joined: Mon Sep 14, 2009 8:51 pm
Posts: 581
Location: Minnesota, USA
Depending upon what you are doing you could also consider using a sparse image. I use a password protected one for storing a list of other passwords as text files. You can then add other files and the image will grow as needed.


Top
 Profile  
 
PostPosted: Tue Sep 25, 2018 10:23 am 
Offline
Benevolent Dictator
User avatar

Joined: Mon Apr 21, 2008 2:03 am
Posts: 16090
Ah, excellent idea! :)


Top
 Profile  
 
PostPosted: Wed Sep 26, 2018 11:11 am 
Offline
User avatar

Joined: Thu May 15, 2008 8:13 pm
Posts: 10594
Location: Caught between the moon and NYC
Apple's tools just let you create zips (compress from finder) and extract files from them, while third party tools open the zip in a window and let you drag items in and out like it was a folder.

I've used BetterZip before, though not recently so no promises on its safety in this malware-laden age. That it is a paid program though bodes well since they shouldn't need to resort to malware payloads to pay their bills.

Also, it looks like Pacifist handles zip files. That's probably even less risky.

The great thing about staying away from Apple-proprietary formats is that no matter what the future holds, you'll probably be able to open a zip file 10 years from now... Apple's disk images? No guarantees. I still have some .dart files lurking around, which was Apple's original compressed image format (.dmg back then was uncompressed).


Top
 Profile  
 
PostPosted: Wed Sep 26, 2018 2:25 pm 
Offline
User avatar

Joined: Mon Sep 14, 2009 8:51 pm
Posts: 581
Location: Minnesota, USA
Again it depends upon the objective. I haven't used any utilities which let you edit a zip file as such. Do they also let you open a file that is inside the zip archive without actually extracting it to your drive? Or if they do, is it relatively seamless and the extracted file automatically deleted afterward?

I agree about the greater longevity of non-Apple formats but since I open my image file weekly it works pretty well for me, particularly since I don't have BetterZip or equivalent.


Top
 Profile  
 
PostPosted: Wed Sep 26, 2018 4:38 pm 
Offline
Benevolent Dictator
User avatar

Joined: Mon Apr 21, 2008 2:03 am
Posts: 16090
Zip 2.6 on Atari allows adding or extracting files and/or folders to/from archives in tandem windows.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group