I need an AppleScript to zip files (not folders) contained in several sub_subfolders.
At the end of each day we have a main folder with a name like SR_2022_Oct_20 inside the main folder are sub folders for each senior photographed. Those subfolders contain multiple files and a sub_sub_ folder named
jpg(whitespace prefixed). I need to zip the files that are inside each
jpg folder, so it ends up containing the zip file plus the original .jpg files.
The folder structure looks like this:
main # Format SR_yyyy_mmm_dd ├── Senior1 # Format LastName_FirstName_ScoolCode │ ├── \ jpg # NOTE: whitespace as a prefix │ │ ├── one.jpg # All jpgs in that folder have to be zipped │ │ └── two.jpg # as "main/Senior1/ jpg/Senior1.zip" │ ├── one.CR2 │ ├── three.CR2 │ └── two.CR2 └── Senior2 # Format LastName_FirstName_ScoolCode ├── \ jpg # NOTE: whitespace as a prefix │ ├── one.jpg │ └── two.jpg ├── one.CR2 ├── three.CR2 └── two.CR2
There can be 50 or 60 Senior folders in the main folder for each day.
The jpg folder has a space in front of the name
This is way beyond my limited scripting capabilities - any help is greatly appreciated.