Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Scripts don't work anymore

New Here ,
Mar 05, 2020 Mar 05, 2020

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

TOPICS
Scripting
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Mar 05, 2020 Mar 05, 2020

How do you run them?

Via Menu?

From ESTK?

Try to insert as first line:

#target framemaker

Translate
Enthusiast ,
Mar 05, 2020 Mar 05, 2020

How do you run them?

Via Menu?

From ESTK?

Try to insert as first line:

#target framemaker

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 07, 2020 Mar 07, 2020
LATEST

Thanks very much Klaus!

This solved the issue.

Have a nice day!

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