When I run the script, I get the following error:
Error Number: 26
Error String: Submenu.getElements() cannot work with instances of this class
I am running Adobe InDesign CS4 version 6.0.4 under Windows XP SP3 (32-bit).
I downloaded the sample scripts from Adobe's website, so it isn't a problem of my mistyping. Has anyone else succeeded in running this script? Am I doing something wrong? Can anyone offer suggestions on how to make it work?