Helpful suggestions, thanks.I threw the script into a button and it still behaves the same way. However, when I open the document in Acrobat Pro (which actually has a debugger! Imagine!), the script halts (but doesn't throw an exception) at the next unexectuted "if", so I think you might be onto so...