The problem: I want to send a folder full of files from my Mac to my friend’s PC. When I right-click on the folder and choose the archive option, the resulting .ZIP file includes a folder called __MACOSX, along with several files that begin with a dot.
The solution: Use YemuZip, which has a PC-specific option that eliminates these files. Another option is Compress, which is a simpler application.Compress can handle many file types such as .ZIP, .7ZIP, and .TAR while YemuZip can only output to .ZIP files. However, YemuZip allows the user to specify the location of the output, while Compress does not.
In addition to zip you may tell tar not to copy resource forks on the command line!
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true
export COPYFILE_DISABLE=true # Mac OS X 10.5 (Leopard)
see: http://codesnippets.joyent.com/posts/show/1962