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

Posted on Mar 12, 2013 2:36 PM

Reply
3 replies

Mar 12, 2013 6:57 PM in response to tom_public

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.

User uploaded file

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

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

remove system files from zip

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.