InDesign scripts, tested in version CS6