FileMaker Pro and FileMaker Pro Advanced include scripting capabilities and a variety of built-in functions for automation of common tasks and complex calculations.
FileMaker 13 introduces a useful script that more deeply queries container field document meta data.