remove system files from zip
When making a zip file was is the easiest way to leave out the Mac OS X specific info such as __MACOSX folder and .DS_Store?
MacBook Pro, OS X Mountain Lion (10.8.2), This applies to many Mac OS X OSs
When making a zip file was is the easiest way to leave out the Mac OS X specific info such as __MACOSX folder and .DS_Store?
MacBook Pro, OS X Mountain Lion (10.8.2), This applies to many Mac OS X OSs
You must use the command line zip. I had made one, but I can't remember what I did.
As another option, you can create this Automator Service to clean the zips after you create them.
Build this Service in Automator, save it with a short name, then right-click on your zips and select the name from the Services menu.
Here is the shell script code which you can copy and paste into the action:
for f in "$@"
do
zip -d "$f" ./__MACOSX* \*.DS_Store
done
I found this solved my problem. I called the automater service Barney-15E provided "clean_zip". Then I used by right clicking my zip file which was previously made by the built in compress, and selecting clean_zip which showed up at the bottom of the choices. Thank you very much!
Glad that helped. I wish I could remember the commands to make the clean zip in the first place. When I looked through the zip man page, nothing really struck me as familiar, so I went with that other angle.
remove system files from zip