Setup for copying of mac apps not comparing mac app contents?

Get help for specific problems
Posts: 2
Joined: 23 Jul 2024

mibit

I need a way to filter out comparisons for Mac app contents, i e everything under .app/ in an macOS app folder hierarchy, yet that copies the whole app folder if that is missing or has a later date fully replacing the app at destination. No updating of internal files inside apps ever.

The logic would be something like:
IF folder name ends with "*.app" ignore contents
AND
IF folder name ending with "*.app is not at destination
OR
folder name ending with "*.app has later date than destination
Add folder and all its content to copy list.
The end result would be that apps fulfilling the criteria would be copied in full. How can you filter like this while copying the app subfolders without issues?

Background here is that Mac apps has a folder structure under AppName.app, which macOS treats as files rather than an ordinary folder.