scripting creating zip files & folder hierarchy

Hi All

I just want to know if anyone thinks it’s possible to do the following?

At root level I have a folder called “hires” inside this folder are folders 0001 - 1000.
Inside each folder are 1 or more jpg’s.

I would like to have another folder at root level called “zips”.

I would like to have the script scan the “hires” folder, and when it finds folders inside, using codes for folder names ie “0004, 0005 to 1000” it makes seperate zip files for each jpg contained in them.
Once the relevant zips are made, can the script replicate the folder code ie 0005, then proceed to store this folder and containing zip’s to a root level folder called “zips”!!!

(I’m using DropZip, to make the zip files).

Is this do-able??

As I don’t think it is by me!

TIA

wilse

Hi

This script uses the internal zip not DropZip. I dont know how to script “DropZip”

Cheers Roland


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]

Hi Roland

Thanks very much for that, interestingly you commented in the script that

Hi again Roland

I’ve figured out how to set the path :oops:
And the script works! I’m not sure why I’m surprised (sorry to doubt your talents)

When I run the batch, I have found that it gives’ up after the 2nd folder, however the 3rd folder is made, but there is nothing in it?

I get “finder got an error: ditto: can’t archive multiple sources”

Sorry to trouble you more?

Can anyone shed any light on this, please?

Wilse :?: