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

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

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
FlowWorker
 
Posts: 2
Joined: Thu Apr 18, 2013 5:17 pm

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"
a_freyer
 
Posts: 631
Joined: Tue Sep 30, 2008 9:21 am
Location: Colorado

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
FlowWorker
 
Posts: 2
Joined: Thu Apr 18, 2013 5:17 pm


Return to Support