Highlighted

Scripts don't work anymore

New Here ,
Mar 05, 2020

Copy link to clipboard

Copied

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

How do you run them?

Via Menu?

From ESTK?

Try to insert as first line:

#target framemaker

TOPICS
Scripting

Views

1.2K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Scripts don't work anymore

New Here ,
Mar 05, 2020

Copy link to clipboard

Copied

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

How do you run them?

Via Menu?

From ESTK?

Try to insert as first line:

#target framemaker

TOPICS
Scripting

Views

1.2K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 05, 2020 0
Enthusiast ,
Mar 05, 2020

Copy link to clipboard

Copied

How do you run them?

Via Menu?

From ESTK?

Try to insert as first line:

#target framemaker

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 05, 2020 0
New Here ,
Mar 07, 2020

Copy link to clipboard

Copied

Thanks very much Klaus!

This solved the issue.

Have a nice day!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 07, 2020 0