Page 1 of 1

[SOLVED]The Unarchiver &or retain original archive metadata?

PostPosted: Sat Mar 19, 2022 10:02 pm
by humata
I found that the built-in unarchive function is somewhat limited. For example, my biggest problem with it is how it doesn't retain the original date of the archive and assigns it to today. I'd really like to have the functionality essentially retain any and all metadata from the archive when extracting it.

A perhaps easier option might be to be able to just run "The Unarchiver.app" since it already handles so many formats and edge cases as well as metadata so well.

How would one set up such an app as The Unarchiver to handle all inbound archive(d) files of various types?

Since this will be of more types than just .zip files, I'm guessing filtering by extension will be best and then perhaps a shell script to somehow execute The Unarchiver? Or is there a more efficient way?

Re: The Unarchiver and/or retain original archive metadata?

PostPosted: Mon Mar 21, 2022 9:16 am
by Mr_Noodle
You can use the "Open" action for that.

Re: The Unarchiver and/or retain original archive metadata?

PostPosted: Mon Mar 21, 2022 4:20 pm
by humata
Nice - funny it's so simple that I completely overlooked it several times while going down various other rabbit holes.

Is there a way to include multiple extensions in an Extension match or does it require line by line, eg:
Image

or

Image

The first with a simple comma separated list doesn't seem to trigger the rule, so I'm thinking the latter is only method accepted.

Re: The Unarchiver and/or retain original archive metadata?

PostPosted: Tue Mar 22, 2022 8:09 am
by Mr_Noodle
Yes, you will need multiple conditions for that.