Skip to main content
Participant
Mar 5, 2020 10:55 AM UTC
Answered

Scripts don't work anymore

Hi,

I have scripts that used to work, but don't work anymore. Most start with the following:

function xyz()

{

var doc = app.ActiveDoc;
if(doc.ObjectValid()==false)
{
alert("No active document. Cannot continue");
return;
}

...

}

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 (15.0.5.838).

 

Thanks in advance for your help!

Aviva

This topic is closed to new replies. Start a new post to keep the conversation going.
Klaus Göbel
Klaus GöbelCorrect answer
Legend
Mar 5, 2020 11:01 AM UTC

How do you run them?

Via Menu?

From ESTK?

Try to insert as first line:

#target framemaker

2 replies

Klaus Göbel
Klaus GöbelCorrect answer
Legend
Mar 5, 2020 11:01 AM UTC

How do you run them?

Via Menu?

From ESTK?

Try to insert as first line:

#target framemaker

Translate
Participant
Mar 8, 2020 4:23 AM UTC

Thanks very much Klaus!

This solved the issue.

Have a nice day!

Translate