image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old April 27th, 2008, 07:27 AM
Registered User
 
Join Date: Mar 2004
Posts: 571
Thanks: 0
Thanked 1 Time in 1 Post
aicul is on a distinguished road
Question ZIP fie with no mac hidden files

Hello,

Does anyone know how to create a zip file without the hidden files that mac generates (for example .DS_Store)

I need this to send a clean zip of marketting material to customers that are ... unfortunately.. PC based.

Any ideas - that does not require use of a PC?
__________________
I'm trying to understand...
Reply With Quote
  #2  
Old April 27th, 2008, 09:34 AM
Registered User
 
Join Date: Jul 2005
Posts: 823
Thanks: 0
Thanked 0 Times in 0 Posts
simbalala is on a distinguished road
BlueHarvest

You can set it to prevent saving .DS_Store files or use it to clean folders or disks after the fact. I use it to prevent saving .DS_Store files to Linux web servers.
Reply With Quote
  #3  
Old April 27th, 2008, 09:46 AM
Registered User
 
Join Date: Jul 2005
Posts: 823
Thanks: 0
Thanked 0 Times in 0 Posts
simbalala is on a distinguished road
Another basic way is to open the folder in Terminal and do “ls -al”.

You’ll see all the . files, then you can just “rm” them.

But be aware that any folder within the archive like parent/child/subchild will show up as parent:child:subchild to your PC users.

To make it simple for myself I just upload to a Linux webserver and do the zipping there if it’s a complex file structure.
Reply With Quote
  #4  
Old April 28th, 2008, 12:34 AM
Registered User
 
Join Date: Mar 2004
Posts: 571
Thanks: 0
Thanked 1 Time in 1 Post
aicul is on a distinguished road
Thanks for your response Simbalala,

Although blueharvest seems to work, the fact that it is always active is a little painful because I don't want hidden files removed from all .zip files.

Your idea about the unix option seems better, I will work with it once I have done some further testing.

Thanks again
__________________
I'm trying to understand...
Reply With Quote
  #5  
Old April 28th, 2008, 12:40 AM
Mikuro's Avatar
Crotchety UI Nitpicker
 
Join Date: Mar 2005
Posts: 2,462
Thanks: 3
Thanked 10 Times in 9 Posts
Mikuro is on a distinguished road
I recommend CleanArchiver, a free zip program that has an option to exclude .ds_store files (without deleting them from your system).

There's also ZipCleaner, which takes zip files created with the Finder and strips out .ds_store files and other Mac-specific data.
__________________
Mac mini — 1.25GHz G4, 1GB RAM — OS 10.5.2

I'm now a four-browser man. How on earth did this happen?!

Useful programs: PithHelmet, Butler, ffmpegX, VLC, Perian, Tofu, Wcalc
Reply With Quote
  #6  
Old April 28th, 2008, 09:40 AM
Registered User
 
Join Date: Jul 2005
Posts: 823
Thanks: 0
Thanked 0 Times in 0 Posts
simbalala is on a distinguished road
Quote:
Originally Posted by aicul View Post
Thanks for your response Simbalala,

Although blueharvest seems to work, the fact that it is always active is a little painful because I don’t want hidden files removed from all .zip files.
BlueHarvest doesn’t remove .DS_Store unless you explicitly drag a folder or disk of some kind (memory cards included) into that prefs panel. In your case you drag the folder you wish to zip over the cleaner icon then zip it.

I got it the day it was announced because I was tired of having .DS_Store files cluttering up my hosted Linux web servers, that’s my primary use, it prevents them from being transferred and that’s why it needs to be constantly active. At the time nothing else was available but now I see from Mikuro’s post that some other options are available, ZipCleaner might be just what you need.

Last edited by simbalala; April 28th, 2008 at 09:47 AM.
Reply With Quote
  #7  
Old April 28th, 2008, 10:17 AM
Registered User
 
Join Date: Jul 2005
Posts: 823
Thanks: 0
Thanked 0 Times in 0 Posts
simbalala is on a distinguished road
Since we're on this topic, a question for Mikuro

I was posting somewhat complex zip files containing php code. Folders within folders.

PC users complained that they opened them and found the folder structure within the archive that should look like parent/child/subchild showing up as parent:child:subchild. So instead of a hierarchical structure they were just seeing many files at the top level with long, confusing filenames.

The Mac does not use / internally it uses a :, I understood what was going on but PC users were baffled and complaining. To get around the problem I starting zipping on my Linux webservers using ssh, upload the folder then zip it there.

Mikuro, do you know of a way which would solve this problem locally?
Reply With Quote
  #8  
Old April 28th, 2008, 11:55 AM
Natobasso's Avatar
Tech-Bot 5000
 
Join Date: Jul 2002
Location: Yo' Mama's House
Posts: 2,920
Thanks: 1
Thanked 2 Times in 2 Posts
Natobasso is on a distinguished road
Get Parallels or Bootcamp?
__________________
Powerpoint is not a design application
Reply With Quote
Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 07:31 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.