I have scripts that used to work, but don't work anymore. Most start with the following:
var doc = app.ActiveDoc;
alert("No active document. Cannot continue");
When I run them now, the program stops at the first or second line, with the error "undefined is not an object".
Why does that happen? I've installed the latest FrameMaker version AFAIK (220.127.116.118).
Thanks in advance for your help!
How do you run them?
Try to insert as first line:
Thanks very much Klaus!
This solved the issue.
Have a nice day!