Is there a way to automate creation of ZIPs containing files with common name elements?
What I have are multiple variations of the same image:
files/2250/8199print.jpg
files/1200×1200/8199square.jpg
files/1200×900/8199wide1.jpg
files/1200×628/8199wide2.jpg
files/480×360/8199small.jpg
What I'd like to do is create some sort of application that goes into folders, finds related files (all contain "8199") and then archives them all into a new file named "cartoon8199.zip".
I tried to create an Application via Automator, but couldn't figure out how to make the Name Contains field in Find Finder Items include a variable.
Any ideas on how to achieve this?
I'm on a Mac running HighSierra 10.13.3.
Thanks in advance!
Best Answer
Heres your script as promised. Any questions or suggestions? Comment below :)
What the script does: Searches through a selected folder for folders. Searches through each one of those for files. If those files contain a specified search parameter then the file is moved to a folder in a location specified. Once all files are checked, the files in the folders at the location specified is ziped up.
For what you want: First Prompt choose the
/files
folder. In the second prompt enter8199
.The Script: