I'm wanting to zip multiple folders at the same time, where each folder is it's own zip file. I'd like to create the zip without the _macosx or any other hidden files, and if possible have the zip file's extension changed to .cbz at the same time. That way I can just run one process on one entire folder and get them all done quickly.
I'm using Ubooquity to host my comics and it treats the files as corrupt if the _macosx file or any other hidden files are inside the zip file.
Best Answer
Here is an Automator Service that uses as single Run Shell Script action to handle the process.
In Automator, select: File > New > Service
Set: Service receives selected folders in Finder
Add a Run Shell Script Action
Save the Automator Service giving it an appropriate name, e.g.: Create CBZ Zip Archive
Now in Finder, select the target folder(s) that you want an individual zip archive, with a .cbz extension for each selected folder, then right-click and select Create CBZ Zip Archive, from the services section of the context menu.
Code for Run Shell Script Action:
Notes:
zip
will not include the__MACOSX
folder and if you find there are other hidden files besides.DS_Store
and.localized
, although you shouldn't run in to the latter in this use case, you can add additional exclusions to thezip
command.