Page 1 of 1

looking for rule size is larger than size last matched????

PostPosted: Thu Apr 18, 2013 5:48 pm
by FlowWorker
I have a photo database that stores JPG in a folder structure created by the metadata in the JPG
eg
PhotoDatabase
------customerID
----------TypeOfWork
---------------file is named date/time.jpg
I'm looking for a rule that will watch the PhotoDatabase folder and run a script when there are any changes within it.
presently I have it setup as -

If all of the following conditions are met for the file or folder being matched
- kind is Folder
- Date Last Modifed is after Date Last Matched

Do the following to matched file or folder:
-Run shell script embedded script


This works as long as something changes within the top level of the folder system. If I watch the Get Info of the top level folder date modified doesn't change when a file or folder is added 3 or 4 folders deep. The only thing that does change is the Size. So is there any way to setup a Size is larger than Size last matched or any other way or script to do the same.

Thanks in Advance
FlowWorker

Re: looking for rule size is larger than size last matched??

PostPosted: Thu Apr 18, 2013 8:02 pm
by a_freyer
Are you running the script on the folder or the file that changes within the folder?

In either case, look at "Run rules on folder contents"

Re: looking for rule size is larger than size last matched??

PostPosted: Fri Apr 19, 2013 1:20 am
by FlowWorker
Ok problem solved

I need 2 rules see below

Rule 1 - Go into subfolders (check out sticky in top of support - you can download the rule)

Rule 2 -

If all of the following conditions are met for the file or folder being matched
Kind is image
Date Added is Today

do the following to matched file folder:
Run shell script embedded script

Thanks a_freyer for pointing me in the right direction

FlowWorker