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

ESTK show Hide Conditional Text tags in a book?

Enthusiast ,
Sep 08, 2025 Sep 08, 2025

@frameexpert I have an existing script to show/hide conditional text in a document - see https://community.adobe.com/t5/framemaker-discussions/estk-script-line-to-refresh-show-hide-conditio...

 

In FrameMaker, the Show/Hide Conditional Text pane works on the book level, so I thought I could just change all references to doc in my script to book.

 

I'm getting an error on book.GetNamedObject (Constants.FO_CondFmt, "Format 1");

 

I noted in the FrameMaker Scripting reference, there is app.GetNamedObject and doc.GetNamedObject, but no book.GetNamedObject.

 

I'm assuming I will need to open the first doc in the book to get the conditional format names, and then process each document in the book to show/hide them.

 

I think I can figure out how to do that (thanks to  https://community.adobe.com/t5/framemaker-discussions/searching-a-book-using-extendscript/td-p/13268... and similar) - I just want to make sure there isn't a simpler solution before I dive too deeply into this.

 

Thanks in advance!

TOPICS
Scripting
106
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

Community Expert , Sep 08, 2025 Sep 08, 2025

In scripting, it works at the document level. The book-level control in the FrameMaker interface is just a convenience, but FrameMaker still opens and closes each document.

Translate
Community Expert ,
Sep 08, 2025 Sep 08, 2025

You have to open each document, do the show/hide, save and close it.

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
Enthusiast ,
Sep 08, 2025 Sep 08, 2025

@frameexpert - Thank you - follow-up, does 

if (CondFmt.CondFmtIsShown === 1){

}

work at the book level, or just the doc level?

Trying to determine at what point I need to close the first doc in the book during execution of the script.

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
Community Expert ,
Sep 08, 2025 Sep 08, 2025

In scripting, it works at the document level. The book-level control in the FrameMaker interface is just a convenience, but FrameMaker still opens and closes each document.

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
Enthusiast ,
Sep 08, 2025 Sep 08, 2025
LATEST

@frameexpert - Thank you - I see the path forward now!!!

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