Are you referring to the AppleScript Folder Actions kit? This can let you trigger a script that will perform some action whenever something is changed in a folder. For instance, when an image is placed in a folder, the folder actions script will automatically create a thumbnail copy. Or anytime a file is dropped in another folder it is automatically added into a compressed backup archive.
Is that what you mean?