It performs the following commands on the selected zip:
zip -d Zipfile.zip \*.DS_Store
zip -d Zipfile.zip \*__MACOSX*
Which is just a long way of saying it deletes those files from any zip you feed it. Makes you popular with the Windows half of your network ;)
I included a service (Automator) that lets you run these commands on arbitrary files. I suggest feeding it a zip – and not an application bundle :)
I also included a hazel rule that applies this action to any zip on your desktop :)
To use this script with Alfred, you’ll need to get the powerpack too.
Grab the scripts here!