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

FDK process and Welcome tab

New Here ,
Feb 05, 2021 Feb 05, 2021

Copy link to clipboard

Copied

Hi

We have this addin built using the FDK. For some processes we need to check if a document is open before continuing. We found out that sometimes this check positive when the Welcome tab is open even if no other files are.

 

Is there any way in the FDK to check specifically to check if the Welcome tab is visible, or even better a way to close the Welcome tab via code?

Views

71

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
community guidelines
Community Expert ,
Feb 05, 2021 Feb 05, 2021

Copy link to clipboard

Copied

LATEST

This is ExtendScript code, but you can adapt it with FDK syntax. It looks like the Welcome tab is internally represented by a Doc object, but its Label property is an empty string. Try opening a new Portrait document and running the code below. The alert will display twice.

#target framemaker

var doc;

doc = app.FirstOpenDoc;
while (doc.ObjectValid () === 1) {
    alert (doc.Label);
    doc = doc.NextOpenDocInSession;
}

Votes

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
community guidelines