

In Finder, or on the Desktop if the zip archive is located there, select the zip archive(s), then right-click and select Delete '_MACOSX' from Zip Archive from the context menu or under Services on the context menu, or from Services on the Finder menu as appropriate. There are also other minor nomenclature differences but they should be more obvious when comparing them to pre-macOS Mojave Automator workflows. Save the Service as, e.g.,: Delete '_MACOSX' from Zip Archiveġ In macOS Mojave, and later, an Automator Service is called a Quick Action. Note: The last line of the code is optional, just to let you know the service completed, and can be changed to a different sound or omitted if you prefer not to be notified by sound upon completion. So it only matches zip in any case combination of those letters. If $ regex matches any case combination of each letter within the square braces while ^ asserts position at start of the string and $ asserts position at the end of the string.

Set Service receives selected to files or folders and in to Finder.Īdd a Run Shell Script Action, setting Shell: to /bin/bash and Pass input: to as arguments while replacing the default code with the following code: for f in " " do Open Automator and select: File > New > Service Using info from the other answer, here's an Automator Service 1 that becomes available in Finder to delete the "_MACOSX" meta-data folder from a zip archive file.
