What OS, OS version, product, and product version are you using?
Have you updated anything?
Was an automatic update applied?
app.doc is not a documented property, so it can stop working without
notice. Why not use the "this" object instead?
You can also test to see if a document is open with:
cEnable: 'event.rc = (event.target != null);'
Yes, event.target works. Thanks all for your help.